mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Merge pull request #1778 from ProgVal/empty-realname
Add missing argument to ERR_NEEDMOREPARAMS on USER commands.
This commit is contained in:
commit
fea8cc1b9a
1 changed files with 1 additions and 1 deletions
|
|
@ -3037,7 +3037,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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue