about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2006-03-16 19:56:34 +0000
committerFlorian Westphal <fw@strlen.de>2006-03-16 19:56:34 +0000
commit68d3d36dd6b8c286aa79768ce69ddebb9bf6e7f6 (patch)
tree9ff1908c7bdc964790d23142980a3f88ed83bdc9 /src
parenteedfc35bbccfe1385f3ba15fd1c0e577f9e07299 (diff)
downloadngircd-68d3d36dd6b8c286aa79768ce69ddebb9bf6e7f6.tar.gz
ngircd-68d3d36dd6b8c286aa79768ce69ddebb9bf6e7f6.zip
removed silly if (foo) { if (foo){ }} statement
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc-channel.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c
index ab93185a..30a7d642 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.33 2005/09/05 08:11:11 alex Exp $";
+static char UNUSED id[] = "$Id: irc-channel.c,v 1.34 2006/03/16 19:56:34 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -97,13 +97,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? */