summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/inspircd.conf.example14
-rw-r--r--src/inspircd_io.cpp5
2 files changed, 13 insertions, 6 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example
index a1ae0bbe9..b0f0f838f 100644
--- a/docs/inspircd.conf.example
+++ b/docs/inspircd.conf.example
@@ -160,12 +160,14 @@
# #
# You should also include a flood="x" line which indicates #
# the number of lines a user may place into their buffer at once #
-# before they are disconnected for excess flood. The default is to #
-# DISABLE this feature. A recommended value is 10. A counter is #
-# maintained for each user which is reset every 'threshold' seconds #
-# and specifying this threshold value with threshold="X" indicates #
-# how often the counter is reset. For example, with flood="5" and #
-# threshold="8", the user may not send more than 5 lines in 8 secs. #
+# before they are disconnected for excess flood. This feature can #
+# not be disabled, however it can be set to exremely high values, #
+# rendering it effectively disabled. A recommended value is 10. #
+# A counter is maintained for each user which is reset every #
+# 'threshold' seconds and specifying this threshold value with #
+# threshold="X" indicates how often the counter is reset. For #
+# example, with flood="5" and threshold="8", the user may not send #
+# more than 5 lines in 8 secs. #
# #
# You may optionally specify the sendq size and ping frequency of #
# each connect:allow line using the pingfreq="X" and sendq="X" #
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 95f88e357..d452a3dbe 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -148,6 +148,11 @@ bool ServerConfig::CheckOnce(char* tag, bool bail, userrec* user)
void ServerConfig::Read(bool bail, userrec* user)
{
+ /** Yes yes, i know, this function is craq worthy of
+ * sirv. Its a mess, and some day i will tidy it.
+ * ...But that day will not be today. or probaby not
+ * tomorrow even, because it works fine.
+ */
char dbg[MAXBUF],pauseval[MAXBUF],Value[MAXBUF],timeout[MAXBUF],NB[MAXBUF],flood[MAXBUF],MW[MAXBUF],MCON[MAXBUF],MT[MAXBUF];
char AH[MAXBUF],AP[MAXBUF],AF[MAXBUF],DNT[MAXBUF],pfreq[MAXBUF],thold[MAXBUF],sqmax[MAXBUF],rqmax[MAXBUF],SLIMT[MAXBUF];
char localmax[MAXBUF],globalmax[MAXBUF],HS[MAXBUF];