accoring to comments in the code, MaxConnections, MaxConnectionsIP and MaxJoins
options allow setting values < 0 -- this isn't the case. Comments adjusted.
This commit is contained in:
parent
77939c382d
commit
d223b587e4
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "portab.h"
|
#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 "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -794,7 +794,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( strcasecmp( Var, "MaxConnections" ) == 0 ) {
|
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
|
#ifdef HAVE_ISDIGIT
|
||||||
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var);
|
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var);
|
||||||
else
|
else
|
||||||
|
@ -803,7 +803,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( strcasecmp( Var, "MaxConnectionsIP" ) == 0 ) {
|
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
|
#ifdef HAVE_ISDIGIT
|
||||||
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
|
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
|
||||||
else
|
else
|
||||||
|
@ -812,7 +812,7 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( strcasecmp( Var, "MaxJoins" ) == 0 ) {
|
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
|
#ifdef HAVE_ISDIGIT
|
||||||
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
|
if( ! isdigit( (int)*Arg )) Config_Error_NaN( Line, Var );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue