From 3994125d88d554cc23108f4558a4f6edda57d5ad 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 faa82cc3..f93ebda8 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3011,7 +3011,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 }