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:
parent
a9a066faac
commit
2ed4491c17
@ -46,7 +46,7 @@ func loadMOTD(srv *soju.Server, filename string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
srv.SetMOTD(strings.TrimSpace(string(b)))
|
srv.SetMOTD(strings.TrimSuffix(string(b), "\n"))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user