diff --git a/irc/handlers.go b/irc/handlers.go index 05b713d2..43fd1deb 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2887,7 +2887,7 @@ func rehashHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo // TODO all operators should get a notice of some kind here rb.Notice(client.t("Rehash complete")) } else { - rb.Add(nil, server.name, ERR_UNKNOWNERROR, nick, "REHASH", err.Error()) + rb.Add(nil, server.name, ERR_UNKNOWNERROR, nick, "REHASH", ircutils.SanitizeText(err.Error(), 350)) } return false }