mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 08:29:31 +01:00
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
This commit is contained in:
parent
5d2d4a99bc
commit
a90fbf9f2c
@ -3038,7 +3038,7 @@ func userHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
|
|||||||
|
|
||||||
username, realname := msg.Params[0], msg.Params[3]
|
username, realname := msg.Params[0], msg.Params[3]
|
||||||
if len(realname) == 0 {
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user