Don't strip spaces at start of MOTD

This breaks ASCII art. Instead, just drop the final newline if any.
This commit is contained in:
Simon Ser 2021-10-13 12:53:43 +02:00
parent a9a066faac
commit 2ed4491c17

View File

@ -46,7 +46,7 @@ func loadMOTD(srv *soju.Server, filename string) error {
if err != nil {
return err
}
srv.SetMOTD(strings.TrimSpace(string(b)))
srv.SetMOTD(strings.TrimSuffix(string(b), "\n"))
return nil
}