From f2ff31a98d422e806e243ab7882248fd82f968a6 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Feb 2006 17:06:47 +0000 Subject: 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 --- src/inspircd_io.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3