mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-04 19:39:10 +00:00
IRC_CHANINFO(): Code cleanup
This commit is contained in:
parent
dcb1951efd
commit
a39e2f22c9
@ -688,7 +688,9 @@ IRC_CHANINFO( CLIENT *Client, REQUEST *Req )
|
|||||||
assert( Req != NULL );
|
assert( Req != NULL );
|
||||||
|
|
||||||
/* Bad number of parameters? */
|
/* 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 */
|
/* Compatibility kludge */
|
||||||
if( Req->argc == 5 ) arg_topic = 4;
|
if( Req->argc == 5 ) arg_topic = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user