mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 07:59:31 +01:00
review fix
This commit is contained in:
parent
21e604860f
commit
58d3d1276f
@ -2930,6 +2930,6 @@ func unknownCommandHandler(server *Server, client *Client, msg ircmsg.IrcMessage
|
|||||||
|
|
||||||
// fake handler for invalid utf8
|
// fake handler for invalid utf8
|
||||||
func invalidUtf8Handler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user