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:
parent
a3d6a053a1
commit
4259bf7d2d
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user