diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 17:06:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 17:06:47 +0000 |
commit | f2ff31a98d422e806e243ab7882248fd82f968a6 (patch) | |
tree | fc92b6f9642d29758aa1eff4168b03fc67ec92f3 /src | |
parent | 6d88dc05822d9a8df80927255272fe7c9c0447de (diff) |
Added anti-retard check to prevent retarded flood settings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3152 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd_io.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index d452a3dbe..a467a9ad5 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -335,6 +335,12 @@ void ServerConfig::Read(bool bail, userrec* user) { c.threshold = atoi(thold); } + else + { + c.threshold = 1; + c.flood = 999; + log(DEFAULT,"Warning: Connect allow line '%s' has no flood/threshold settings. Setting this tag to 999 lines in 1 second.",c.host.c_str()); + } if (atoi(sqmax)>0) { c.sendqmax = atoi(sqmax); |