summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Busse <mail@baerlin.eu>2015-10-18 23:47:50 +0200
committerSergey Matveev <stargrave@stargrave.org>2015-10-19 11:31:47 +0300
commit4f1a1012b252f0090b150672bb55268621368498 (patch)
treec243a8784af019a3384fb3f8a0b0bb714b98b3fa
parent66eaa48372228e098b464e8eac64d15a8582e9ef (diff)
downloadgoircd-4f1a1012b252f0090b150672bb55268621368498.tar.xz
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().
-rw-r--r--daemon.go2
1 files changed, 1 insertions, 1 deletions
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")