From ee10c76ebbf3a31012b637d744c3d87493a806c3 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Jun 2005 16:19:27 +0000 Subject: Fixed ability to accidentally set a softlimit of 0 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1585 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a15d39be2..4d7c933c6 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -329,7 +329,7 @@ void ReadConfig(bool bail, userrec* user) ConfValue("options","softlimit",0,SLIMT,&config_f); SoftLimit = atoi(SLIMT); - if ((SoftLimit < 0) || (SoftLimit > MAXCLIENTS)) + if ((SoftLimit < 1) || (SoftLimit > MAXCLIENTS)) { log(DEFAULT,"WARNING: value is greater than %d or less than 0, set to %d.",MAXCLIENTS,MAXCLIENTS); SoftLimit = MAXCLIENTS; -- cgit v1.2.3