diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-06-01 16:19:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-06-01 16:19:27 +0000 |
commit | ee10c76ebbf3a31012b637d744c3d87493a806c3 (patch) | |
tree | 96732e464089bf144ea0f5af2cf083aba3171016 /src | |
parent | 690cdba6786ada620b43bb0afb07308f47612dc8 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: <options:softlimit> value is greater than %d or less than 0, set to %d.",MAXCLIENTS,MAXCLIENTS); SoftLimit = MAXCLIENTS; |