aboutsummaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-05-25 21:09:04 +0000
committerGravatar brain2008-05-25 21:09:04 +0000
commitf5151d1bbcf5c4c3cff57ff8a8129940ede35d73 (patch)
treee96e5abece246102e32fba6aa2d298f57b9baa25 /src/configreader.cpp
parentAdd parsing of <limits> tag and finish documenting it, make all the values ma... (diff)
downloadinspircd++-f5151d1bbcf5c4c3cff57ff8a8129940ede35d73.tar.gz
inspircd++-f5151d1bbcf5c4c3cff57ff8a8129940ede35d73.tar.bz2
inspircd++-f5151d1bbcf5c4c3cff57ff8a8129940ede35d73.zip
All the limits were one less than specified in the config, so now we postincrement them all in configreader, this means we can just use them without all that +1 hackery in the code.
This DOES mean that from a protocol perspective the figures look a little odd, but they always did. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9809 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index f572211f3..2320496c8 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1169,6 +1169,11 @@ void ServerConfig::Read(bool bail, User* user)
MultiValues[Index].finish_function(this, MultiValues[Index].tag);
}
+ /* Finalise the limits, increment them all by one so that we can just put assign(str, 0, val)
+ * rather than assign(str, 0, val + 1)
+ */
+ Limits.Finalise();
+
}
catch (CoreException &ce)