Changeset 637 in code for trunk/cmd


Ignore:
Timestamp:
Oct 13, 2021, 10:53:43 AM (4 years ago)
Author:
contact
Message:

Don't strip spaces at start of MOTD

This breaks ASCII art. Instead, just drop the final newline if any.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/soju/main.go

    r636 r637  
    4747                return err
    4848        }
    49         srv.SetMOTD(strings.TrimSpace(string(b)))
     49        srv.SetMOTD(strings.TrimSuffix(string(b), "\n"))
    5050        return nil
    5151}
Note: See TracChangeset for help on using the changeset viewer.