]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-op.c
Add more penalty times
[ngircd-alex.git] / src / ngircd / irc-op.c
index 4cd4236eefd55cfe64a3cd7a72ce615eeee996c0..52126877dc1a6f27bc804b3a968499251d36e980 100644 (file)
@@ -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 */