diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-09 03:35:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-09 03:35:55 +0000 |
commit | 0291b2f2edad6d62f4e0c08a804a2276959e6e7b (patch) | |
tree | 30f7f6c11f90e5742a4ca124f787c0cb2e220a80 | |
parent | 843710b75a87e9ee91e4e14f78e9bce9267af391 (diff) |
Added comment about the craqness of ServerConfig::Read()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3145 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | docs/inspircd.conf.example | 14 | ||||
-rw-r--r-- | src/inspircd_io.cpp | 5 |
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]; |