summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 18:32:11 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 18:32:11 +0000
commit106043620278abc0755377544cfe012c84de4abc (patch)
treec8487d68905db16ce92b964c40051ccd0048bee7 /include/users.h
parent18299e282a9326a7bbc1b338254dbfa85772dd1b (diff)
Add a setting to <connect> allowing the threshold for activation of the penalty system to be set in the configuration, or be disabled by setting it to 0. [jackmcbarn]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11922 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 385cd2dfe..42d04696a 100644
--- a/include/users.h
+++ b/include/users.h
@@ -108,6 +108,10 @@ struct CoreExport ConnectClass : public refcountbase
*/
unsigned long recvqmax;
+ /** Seconds worth of penalty before penalty system activates
+ */
+ unsigned long penaltythreshold;
+
/** Local max when connecting by this connection class
*/
unsigned long maxlocal;
@@ -181,6 +185,13 @@ struct CoreExport ConnectClass : public refcountbase
return (recvqmax ? recvqmax : 4096);
}
+ /** Returns the penalty threshold value
+ */
+ unsigned long GetPenaltyThreshold()
+ {
+ return penaltythreshold;
+ }
+
/** Returusn the maximum number of local sessions
*/
unsigned long GetMaxLocal()