]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Fix bug spotted by KingTarquin, if an empty string is given to /stats with "STATS...
[user/henk/code/inspircd.git] / include / mode.h
index 467e7e2ae033ded7e052e0582c2626f579a0eda7..a8dd839dd4ca47fd7b28c11bf44dd5f8cf5e29f7 100644 (file)
@@ -213,7 +213,7 @@ class CoreExport ModeHandler : public Extensible
 
        /** For user modes, return the current parameter, if any
         */
-       std::string GetUserParameter(User* user);
+       virtual std::string GetUserParameter(User* useor);
 
        /**
         * Called when a mode change for your mode occurs.
@@ -544,9 +544,14 @@ class CoreExport ModeParser : public classbase
         */
        std::string ParaModeList();
 
-       /** Generates the CHANMODES= 005 sequence
+       /** Generates a list of modes, comma seperated by type:
+        *  1; Listmodes EXCEPT those with a prefix
+        *  2; Modes that take a param when adding or removing
+        *  3; Modes that only take a param when adding
+        *  4; Modes that dont take a param
         */
-       std::string ChanModes();
+       std::string GiveModeList(ModeMasks m);
+
        /** Used by this class internally during std::sort and 005 generation
         */
        static bool PrefixComparison(prefixtype one, prefixtype two);