From: Björn Busse Date: Sun, 18 Oct 2015 21:47:50 +0000 (+0200) Subject: Do not alter MOTD X-Git-Tag: 1.3~5 X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=commitdiff_plain;h=4f1a1012b252f0090b150672bb55268621368498 Do not alter MOTD It should be up to the author how exactly the MOTD is laid out - some people like to have a margin, therefor remove the trim(). --- diff --git a/daemon.go b/daemon.go index 57797c7..3afda4f 100644 --- a/daemon.go +++ b/daemon.go @@ -67,7 +67,7 @@ func SendMotd(client *Client) { return } client.ReplyNicknamed("375", "- "+*hostname+" Message of the day -") - for _, s := range strings.Split(strings.Trim(string(motdText), "\n"), "\n") { + for _, s := range strings.Split(strings.TrimSuffix(string(motdText), "\n"), "\n") { client.ReplyNicknamed("372", "- "+s) } client.ReplyNicknamed("376", "End of /MOTD command")