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().
This commit is contained in:
parent
0b56bd0ba4
commit
69b0c46170
@ -67,7 +67,7 @@ func SendMotd(client *Client) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
client.ReplyNicknamed("375", "- "+*hostname+" Message of the day -")
|
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("372", "- "+s)
|
||||||
}
|
}
|
||||||
client.ReplyNicknamed("376", "End of /MOTD command")
|
client.ReplyNicknamed("376", "End of /MOTD command")
|
||||||
|
Loading…
Reference in New Issue
Block a user