]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
MAXMODES+1 -> MAXMODES+2
[user/henk/code/inspircd.git] / include / mode.h
index d28b0352938fa3d69edf87fadd70728fb7c2a7bd..d548ea8d73b4959fa8ef8aba86bfb26c8e3d0adb 100644 (file)
@@ -90,7 +90,7 @@ typedef std::pair<bool,std::string> ModePair;
  * mode is expected to have a parameter, then this is
  * equivalent to returning MODEACTION_DENY.
  */
-class ModeHandler : public Extensible
+class CoreExport ModeHandler : public Extensible
 {
  protected:
        InspIRCd* ServerInstance;
@@ -171,6 +171,9 @@ class ModeHandler : public Extensible
        /** 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.
@@ -276,7 +279,7 @@ class ModeHandler : public Extensible
  * and attach it to the mode using Server::AddModeWatcher and Server::DelModeWatcher.
  * A ModeWatcher will be called both before and after the mode change.
  */
-class ModeWatcher : public Extensible
+class CoreExport ModeWatcher : public Extensible
 {
  protected:
        InspIRCd* ServerInstance;
@@ -344,7 +347,7 @@ typedef std::vector<ModeWatcher*>::iterator ModeWatchIter;
  * parses client to server MODE strings for user and channel modes, and performs
  * processing for the 004 mode list numeric, amongst other things.
  */
-class ModeParser : public classbase
+class CoreExport ModeParser : public classbase
 {
  private:
        InspIRCd* ServerInstance;
@@ -481,7 +484,7 @@ class ModeParser : public classbase
        std::string ChanModes();
        /** Used by this class internally during std::sort and 005 generation
         */
-       static bool PrefixComparison(const prefixtype one, const prefixtype two);
+       static bool PrefixComparison(prefixtype one, prefixtype two);
 
        /** This returns the PREFIX=(ohv)@%+ section of the 005 numeric.
         */