3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00

review fix

This commit is contained in:
Shivaram Lingamneni 2020-06-22 18:53:54 -04:00
parent 21e604860f
commit 58d3d1276f

View File

@ -2930,6 +2930,6 @@ func unknownCommandHandler(server *Server, client *Client, msg ircmsg.IrcMessage
// fake handler for invalid utf8
func invalidUtf8Handler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, ERR_UNKNOWNERROR, client.Nick(), utils.SafeErrorParam(msg.Command), client.t("Message rejected for containing invalid UTF-8"))
rb.Add(nil, server.name, "FAIL", utils.SafeErrorParam(msg.Command), "INVALID_UTF8", client.t("Message rejected for containing invalid UTF-8"))
return false
}