]> arthur.barton.de Git - ngircd-alex.git/commitdiff
IRC_CHANINFO(): Code cleanup
authorAlexander Barton <alex@barton.de>
Sat, 19 Mar 2011 16:29:19 +0000 (17:29 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 19 Mar 2011 16:29:19 +0000 (17:29 +0100)
src/ngircd/irc-channel.c

index 33ea68d309ffc84cfbedb91518f817c61e171bb3..476c313835f337b01bb0688c9a9a1e8d97135a83 100644 (file)
@@ -688,7 +688,9 @@ IRC_CHANINFO( CLIENT *Client, REQUEST *Req )
        assert( Req != NULL );
 
        /* Bad number of parameters? */
-       if(( Req->argc < 2 ) || ( Req->argc == 4 ) || ( Req->argc > 5 )) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
+       if (Req->argc < 2 || Req->argc == 4 || Req->argc > 5)
+               return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG,
+                                         Client_ID(Client), Req->command);
 
        /* Compatibility kludge */
        if( Req->argc == 5 ) arg_topic = 4;