diff options
Diffstat (limited to 'include/mode.h')
-rw-r--r-- | include/mode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index 2e40badca..4b8aa0935 100644 --- a/include/mode.h +++ b/include/mode.h @@ -479,6 +479,10 @@ class CoreExport ModeParser */ static const unsigned int MODETYPE_LAST = 2; + /** Type of the container that maps mode names to ModeHandlers + */ + typedef TR1NS::unordered_map<std::string, ModeHandler*, irc::insensitive, irc::StrHashComp> ModeHandlerMap; + /** Mode handlers for each mode, to access a handler subtract * 65 from the ascii value of the mode letter. * The upper bit of the value indicates if its a usermode @@ -486,6 +490,10 @@ class CoreExport ModeParser */ ModeHandler* modehandlers[MODETYPE_LAST][128]; + /** A map of mode handlers keyed by their name + */ + ModeHandlerMap modehandlersbyname[MODETYPE_LAST]; + /** Lists of mode handlers by type */ struct |