X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-op.c;h=52126877dc1a6f27bc804b3a968499251d36e980;hp=4cd4236eefd55cfe64a3cd7a72ce615eeee996c0;hb=bcb45da1b416e7ee4b50dcf16947fb9703f713cf;hpb=904c8a4375cb9deed64007b06c6a7ba42313d93d diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index 4cd4236e..52126877 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -71,7 +71,6 @@ IRC_KICK(CLIENT *Client, REQUEST *Req) assert( Client != NULL ); assert( Req != NULL ); - _IRC_ARGC_BETWEEN_OR_RETURN_(Client, Req, 2, 3) _IRC_GET_SENDER_OR_RETURN_(from, Req, Client) while (*itemList) { @@ -123,6 +122,7 @@ IRC_KICK(CLIENT *Client, REQUEST *Req) nickCount--; } } else { + IRC_SetPenalty(Client, 2); return IRC_WriteErrClient(Client, ERR_NEEDMOREPARAMS_MSG, Client_ID(Client), Req->command); } @@ -147,7 +147,6 @@ IRC_INVITE(CLIENT *Client, REQUEST *Req) assert( Client != NULL ); assert( Req != NULL ); - _IRC_ARGC_EQ_OR_RETURN_(Client, Req, 2) _IRC_GET_SENDER_OR_RETURN_(from, Req, Client) /* Search user */