]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Add third parameter to OnUserQuit (quit reason for opers only) - bump api version
[user/henk/code/inspircd.git] / include / channels.h
index a85e69dd1ec02a02415196a033672910ea7022a6..7daab2167c72509a43f18000d49186c1567bf6f0 100644 (file)
@@ -124,6 +124,10 @@ class chanrec : public Extensible
 
        prefixlist prefixes;
 
+       /** Maximum number of bans (cached)
+        */
+       int maxbans;
+
  public:
        /** The channels name.
         */
@@ -174,7 +178,7 @@ class chanrec : public Extensible
        /** The last user to set the topic.
         * If this member is an empty string, no topic was ever set.
         */
-       char setby[NICKMAX];
+       char setby[128];
 
        /** Contains the channel user limit.
         * If this value is zero, there is no limit in place.
@@ -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 */ }