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
1 changed files with 1 additions and 11 deletions

View File

@ -283,18 +283,8 @@ func (server *Server) MOTD(client *Client) {
} }
line = strings.TrimRight(line, "\r\n") 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) client.RplMOTD(line)
} }
} else {
client.RplMOTD(line)
}
}
client.RplMOTDEnd() client.RplMOTDEnd()
} }