From a90fbf9f2c30951f85e3b6f46842df999f1a1754 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 13 Aug 2021 21:10:39 +0200 Subject: [PATCH] Add missing argument to ERR_NEEDMOREPARAMS on USER commands. Refs: * other instances in the codebase * https://defs.ircdocs.horse/defs/numerics.html#err-needmoreparams-461 * https://modern.ircdocs.horse/#errneedmoreparams-461 --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 7a269647..3f294f5c 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3038,7 +3038,7 @@ func userHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons username, realname := msg.Params[0], msg.Params[3] if len(realname) == 0 { - rb.Add(nil, server.name, ERR_NEEDMOREPARAMS, client.Nick(), client.t("Not enough parameters")) + rb.Add(nil, server.name, ERR_NEEDMOREPARAMS, client.Nick(), "USER", client.t("Not enough parameters")) return false }