]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Move {prefix|suffix|fixed}{quit|part} into core_user
[user/henk/code/inspircd.git] / include / mode.h
index c257226c95ce798849444429b4f035d2b607979f..7c5682135c7475f3d09353dbe0b734ac0230e8f2 100644 (file)
@@ -637,10 +637,12 @@ class CoreExport ModeParser
        const std::string& GetLastParse() const { return LastParse; }
        const std::vector<std::string>& GetLastParseParams() { return LastParseParams; }
        const std::vector<TranslateType>& GetLastParseTranslate() { return LastParseTranslate; }
+
        /** Add a mode to the mode parser.
-        * @return True if the mode was successfully added.
+        * Throws a ModuleException if the mode cannot be added.
         */
-       bool AddMode(ModeHandler* mh);
+       void AddMode(ModeHandler* mh);
+
        /** Delete a mode from the mode parser.
         * When a mode is deleted, the mode handler will be called
         * for every user (if it is a user mode) or for every  channel