summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h
index a85e69dd1..17e7364a4 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -124,6 +124,10 @@ class chanrec : public Extensible
prefixlist prefixes;
+ /** Maximum number of bans (cached)
+ */
+ int maxbans;
+
public:
/** The channels name.
*/
@@ -510,6 +514,10 @@ class chanrec : public Extensible
*/
bool IsBanned(userrec* user);
+ /** Clears the cached max bans value
+ */
+ void ResetMaxBans();
+
/** Destructor for chanrec
*/
virtual ~chanrec() { /* stub */ }