Don't strip spaces at start of MOTD

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

git-svn-id: https://svn.yakumo.dev/yakumo.izuru/suika/trunk@637 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-10-13 10:53:43 +00:00
parent a3d6a053a1
commit 4259bf7d2d

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
}