X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmode.h;h=e7ac756ecdaa636faf524166a272776f3fcea400;hb=a7a0f69c6bf32b63c3314a097929c533296b1c86;hp=1c2bd8f44b47d7279ced0086f02c762dd6b1b772;hpb=56af4909b89d3edfe919fe28178c18dcaa9cee47;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/mode.h b/include/mode.h index 1c2bd8f44..e7ac756ec 100644 --- a/include/mode.h +++ b/include/mode.h @@ -168,6 +168,11 @@ class CoreExport ModeHandler : public ServiceProvider ModeHandler(Module* me, const std::string& name, char modeletter, ParamSpec params, ModeType type, Class mclass = MC_OTHER); virtual CullResult cull(); virtual ~ModeHandler(); + + /** Register this object in the ModeParser + */ + void RegisterService() CXX11_OVERRIDE; + /** * Returns true if the mode is a list mode */ @@ -490,7 +495,7 @@ class CoreExport ModeParser : public fakederef private: /** Type of the container that maps mode names to ModeWatchers */ - typedef std::multimap ModeWatcherMap; + typedef insp::flat_multimap ModeWatcherMap; /** Last item in the ModeType enum */ @@ -769,10 +774,10 @@ class CoreExport ModeParser : public fakederef const ModeHandlerMap& GetModes(ModeType mt) const { return modehandlersbyname[mt]; } /** Show the list of a list mode to a user. Modules can deny the listing. - * @param user User to show the list to. - * @param chan Channel to show the list of. - * @param mh List mode to show the list of. - */ + * @param user User to show the list to. + * @param chan Channel to show the list of. + * @param mh List mode to show the list of. + */ void ShowListModeList(User* user, Channel* chan, ModeHandler* mh); };