3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00

irc/server: MOTD does not need to be clipped at 80 chars, has not been standard for a long while now

This commit is contained in:
Daniel Oaks 2016-04-12 13:03:59 +10:00
parent 7ce62444de
commit c705bdaac5

View File

@ -283,17 +283,7 @@ func (server *Server) MOTD(client *Client) {
}
line = strings.TrimRight(line, "\r\n")
if len(line) > 80 {
for len(line) > 80 {
client.RplMOTD(line[0:80])
line = line[80:]
}
if len(line) > 0 {
client.RplMOTD(line)
}
} else {
client.RplMOTD(line)
}
client.RplMOTD(line)
}
client.RplMOTDEnd()
}