X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=52954402d9d036acc898f9a1737d9cc5c2acf691;hp=2c7ba94d5a1e793cf37b25d8c25f3e36185c96d4;hb=00249f3c805ec0b4564901dce0f3a7b0c20ce439;hpb=62865f7e1910d08ad8d72cb89f830f6d9411ffa2 diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 2c7ba94d..52954402 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -531,11 +531,9 @@ Handle_Request( CONN_ID Idx, REQUEST *Req ) } if (Req->argc < cmd->min_argc || - (cmd->max_argc != -1 && Req->argc > cmd->max_argc)) { - IRC_SetPenalty(client, 2); - return IRC_WriteStrClient(client, ERR_NEEDMOREPARAMS_MSG, + (cmd->max_argc != -1 && Req->argc > cmd->max_argc)) + return IRC_WriteErrClient(client, ERR_NEEDMOREPARAMS_MSG, Client_ID(client), Req->command); - } /* Command is allowed for this client: call it and count * generated bytes in output */