X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconf.c;h=e72152232c2327202598a20c87e05086df25b1e4;hp=2ff503612cd31575116941c9267ffc7f742408f1;hb=902ad91212f3d756fa898239108128d2230bdc0c;hpb=8b7b23cf8f36e51bbe89a1a586bd238357183e83 diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 2ff50361..e7215223 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.43 2002/12/13 17:32:33 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.44 2002/12/14 13:36:19 alex Exp $"; #include "imp.h" #include @@ -119,8 +119,6 @@ Conf_Test( VOID ) else printf( " MaxConnections = -1\n" ); if( Conf_MaxJoins > 0 ) printf( " MaxJoins = %d\n", Conf_MaxJoins ); else printf( " MaxJoins = -1\n" ); - if( Conf_MaxPChannels > 0 ) printf( " MaxPChannels = %d\n", Conf_MaxPChannels ); - else printf( " MaxPChannels = -1\n" ); puts( "" ); for( i = 0; i < Conf_Oper_Count; i++ ) @@ -197,7 +195,6 @@ Set_Defaults( VOID ) Conf_MaxConnections = -1; Conf_MaxJoins = 10; - Conf_MaxPChannels = -1; } /* Set_Defaults */ @@ -494,16 +491,6 @@ Handle_GLOBAL( INT Line, CHAR *Var, CHAR *Arg ) Conf_MaxJoins = atoi( Arg ); return; } - if( strcasecmp( Var, "MaxPChannels" ) == 0 ) - { - /* Maximum number of persistent channels in the network. Values <= 0 are equal to "no limit". */ -#ifdef HAVE_ISDIGIT - if( ! isdigit( *Arg )) Config_Error( LOG_WARNING, "%s, line %d: Value of \"MaxPChannels\" is not a number!", NGIRCd_ConfFile, Line ); - else -#endif - Conf_MaxPChannels = atoi( Arg ); - return; - } Config_Error( LOG_ERR, "%s, line %d (section \"Global\"): Unknown variable \"%s\"!", NGIRCd_ConfFile, Line, Var ); } /* Handle_GLOBAL */