summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2007-10-13 19:11:06 +0000
committerFlorian Westphal <fw@strlen.de>2007-10-13 19:11:06 +0000
commitd223b587e4a3fc76ff8f8f1068c7a09dc6d9ac59 (patch)
treebd85865ec50d59a5778808ca682e23f127f81cac /src
parent77939c382d84cf1ab1fcf6d78c955b1464ea21ac (diff)
downloadngircd-d223b587e4a3fc76ff8f8f1068c7a09dc6d9ac59.tar.gz
ngircd-d223b587e4a3fc76ff8f8f1068c7a09dc6d9ac59.zip
accoring to comments in the code, MaxConnections, MaxConnectionsIP and MaxJoins
options allow setting values < 0 -- this isn't the case. Comments adjusted.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 0328f940..a6fc7631 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conf.c,v 1.98 2007/06/28 05:15:18 fw Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.99 2007/10/13 19:11:06 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -794,7 +794,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
 		return;
 	}
 	if( strcasecmp( Var, "MaxConnections" ) == 0 ) {
-		/* Maximum number of connections. Values <= 0 are equal to "no limit". */
+		/* Maximum number of connections. 0 -> "no limit". */
 #ifdef HAVE_ISDIGIT
 		if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var);
 		else
@@ -803,7 +803,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
 		return;
 	}
 	if( strcasecmp( Var, "MaxConnectionsIP" ) == 0 ) {
-		/* Maximum number of simultaneous connections from one IP. Values <= 0 -> "no limit" */
+		/* Maximum number of simultaneous connections from one IP. 0 -> "no limit" */
 #ifdef HAVE_ISDIGIT
 		if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
 		else
@@ -812,7 +812,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
 		return;
 	}
 	if( strcasecmp( Var, "MaxJoins" ) == 0 ) {
-		/* Maximum number of channels a user can join. Values <= 0 are equal to "no limit". */
+		/* Maximum number of channels a user can join. 0 -> "no limit". */
 #ifdef HAVE_ISDIGIT
 		if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
 		else