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

@ -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()
}