summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:08:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:08:13 +0000
commit6856c87ae51d655870607c6e74e0eed6d338283a (patch)
tree6b2036107b1bd0d884c5b3a7515d58cf960db334 /include/users.h
parentfd37f4ba0e5196f2c8d0fa307622ed48c168274f (diff)
*untested* command buffering/penalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8250 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/users.h b/include/users.h
index f43c787a0..d927890f0 100644
--- a/include/users.h
+++ b/include/users.h
@@ -681,12 +681,14 @@ class CoreExport User : public connection
*/
bool exempt;
- /** If this bool is set for a user, then the user is under penalty, in short they
- * are waiting for some held commands to be executed. If this is the case, then
- * any commands they have in their sendq are executed on a timer tick rather than in
- * their event handler.
+ /** This value contains how far into the penalty threshold the user is. Once its over
+ * the penalty threshold then commands are held and processed on-timer.
*/
- bool UnderPenalty;
+ int Penalty;
+
+ /** True if we are flushing penalty lines
+ */
+ bool OverPenalty;
/** If this bool is set then penalty rules do not apply to this user
*/