From: Florian Westphal Date: Thu, 16 Mar 2006 20:03:14 +0000 (+0000) Subject: removed redundant (foo) { if (foo){} } clause (from HEAD) X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=f95d8130647a03757e42f3de1e78c822335e2644;hp=a854a38616a4cd4dcf864eb2a6de9cd99be788df;p=ngircd.git removed redundant (foo) { if (foo){} } clause (from HEAD) --- diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 4708af1d..3a3470bc 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc-channel.c,v 1.30 2005/06/12 18:23:59 alex Exp $"; +static char UNUSED id[] = "$Id: irc-channel.c,v 1.30.2.1 2006/03/16 20:03:14 fw Exp $"; #include "imp.h" #include @@ -90,13 +90,10 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req ) if( Client_Type( Client ) == CLIENT_USER ) { /* Test if the user has reached his maximum channel count */ - if( Client_Type( Client ) == CLIENT_USER ) - { - if(( Conf_MaxJoins > 0 ) && ( Channel_CountForUser( Client ) >= Conf_MaxJoins )) - { - IRC_WriteStrClient( Client, ERR_TOOMANYCHANNELS_MSG, Client_ID( Client ), channame ); - return CONNECTED; - } + if(( Conf_MaxJoins > 0 ) && ( Channel_CountForUser( Client ) >= Conf_MaxJoins )) { + IRC_WriteStrClient( Client, ERR_TOOMANYCHANNELS_MSG, + Client_ID( Client ), channame ); + return CONNECTED; } /* Existiert der Channel bereits, oder wird er im Moment neu erzeugt? */