]> arthur.barton.de Git - ngircd.git/commitdiff
removed redundant (foo) { if (foo){} } clause (from HEAD)
authorFlorian Westphal <fw@strlen.de>
Thu, 16 Mar 2006 20:03:14 +0000 (20:03 +0000)
committerFlorian Westphal <fw@strlen.de>
Thu, 16 Mar 2006 20:03:14 +0000 (20:03 +0000)
src/ngircd/irc-channel.c

index 4708af1d7fbcff86560e4d4af2e3fc05444464a1..3a3470bc768fcdaa87c0c69fc23a18867785983d 100644 (file)
@@ -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 <assert.h>
@@ -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? */