X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmode.h;h=7c5682135c7475f3d09353dbe0b734ac0230e8f2;hb=7f4a2cc351efa9c6b50ef15c5772c54cbaef4e75;hp=c257226c95ce798849444429b4f035d2b607979f;hpb=7affd6453d9d564636da5fe5c0fe7baba5fecf7a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/mode.h b/include/mode.h index c257226c9..7c5682135 100644 --- a/include/mode.h +++ b/include/mode.h @@ -637,10 +637,12 @@ class CoreExport ModeParser const std::string& GetLastParse() const { return LastParse; } const std::vector& GetLastParseParams() { return LastParseParams; } const std::vector& 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