X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=daemon.go;h=49e2dd876c6faaa1789c8e0bb454075eaa711687;hp=59d6372b4a64b3e611e28cfd48ac53737ad69e8e;hb=6d2c47a7af3afc09b3b8899d9b770b58e2792d31;hpb=043730c35562365191764faf321424eb7bec0513 diff --git a/daemon.go b/daemon.go index 59d6372..49e2dd8 100644 --- a/daemon.go +++ b/daemon.go @@ -84,7 +84,7 @@ func (daemon *Daemon) SendMotd(client *Client) { } client.ReplyNicknamed("375", "- "+daemon.hostname+" Message of the day -") - for _, s := range bytes.Split(motd, []byte("\n")) { + for _, s := range bytes.Split(bytes.TrimRight(motd, "\n"), []byte("\n")) { client.ReplyNicknamed("372", "- "+string(s)) } client.ReplyNicknamed("376", "End of /MOTD command")