]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Fix bug #83
[user/henk/code/inspircd.git] / include / mode.h
index f2b58a309207d46a3106598dd7eda0f656879a0a..87d79c7d563902a4954a54690a3e0d58881d0348 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -90,7 +90,7 @@ enum ParamSpec
  * mode is expected to have a parameter, then this is
  * equivalent to returning MODEACTION_DENY.
  */
-class CoreExport ModeHandler : public providerbase
+class CoreExport ModeHandler : public ServiceProvider
 {
  protected:
        /**
@@ -135,10 +135,6 @@ class CoreExport ModeHandler : public providerbase
         */
        ModeType m_type;
 
-       /** Number of items with this mode set on them
-        */
-       unsigned int count;
-
        /** The prefix char needed on channel to use this mode,
         * only checked for channel modes
         */
@@ -167,12 +163,6 @@ class CoreExport ModeHandler : public providerbase
         * value for this mode prefix.
         */
        inline char GetPrefix() const { return prefix; }
-       /** 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.