]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Add third parameter to OnUserQuit (quit reason for opers only) - bump api version
[user/henk/code/inspircd.git] / include / mode.h
index b3c580e6cecf960148b54f45e4fb34ed48ca31d5..2875d853ea72af62c272c7602962b407e8b1d064 100644 (file)
@@ -132,6 +132,10 @@ class ModeHandler : public Extensible
         */
        char prefix;
 
+       /** Number of items with this mode set on them
+        */
+       unsigned int count;
+
  public:
        /**
         * The constructor for ModeHandler initalizes the mode handler.
@@ -164,6 +168,12 @@ class ModeHandler : public Extensible
         * value for this mode prefix.
         */
        char GetPrefix();
+       /** Get number of items with this mode set on them
+        */
+       virtual unsigned int GetCount();
+       /** Adjust usage count returned by GetCount
+        */
+       virtual void ChangeCount(int modifier);
        /**
         * Get the 'value' of this modes prefix.
         * determines which to display when there are multiple.