From 69b0c4617048102bb0c8e0aa65358918bc521bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Sun, 18 Oct 2015 23:47:50 +0200 Subject: [PATCH] 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(). --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index 3d1c8ea..e56b7b5 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")