]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
This is better, and proved working
[user/henk/code/inspircd.git] / include / channels.h
index a85e69dd1ec02a02415196a033672910ea7022a6..17e7364a42919eab3ed829887c8cb0a8f7d94d8f 100644 (file)
@@ -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 */ }