From 106043620278abc0755377544cfe012c84de4abc Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 19 Oct 2009 18:32:11 +0000 Subject: Add a setting to 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 --- include/users.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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() -- cgit v1.2.3