This commit is contained in:
Shivaram Lingamneni 2020-05-08 05:44:40 -04:00
parent d187cc5512
commit 6f688a4644
3 changed files with 13 additions and 6 deletions

View file

@ -2760,3 +2760,9 @@ func zncHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respo
zncModuleHandler(client, msg.Params[0], msg.Params[1:], rb)
return false
}
// fake handler for unknown commands
func unknownCommandHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, ERR_UNKNOWNCOMMAND, client.Nick(), utils.SafeErrorParam(msg.Command), client.t("Unknown command"))
return false
}