diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 19:12:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 19:12:55 +0000 |
commit | 7fe5347210730622badcb6ed32d90114bd8cbeb4 (patch) | |
tree | 495ff9cfcae28db0fe9fc1de26f9e784606d57df /include/modules.h | |
parent | 8923de4c4ff8e48f15baf8ca5914f664012cbd8d (diff) |
Remove our vectors of Module*/ircd_module*, replace with a map of std::pair<ircd_module*, Module*>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8513 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/modules.h b/include/modules.h index a42292ad1..49fd0da50 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1565,22 +1565,12 @@ class CoreExport ModuleManager : public classbase */ InspIRCd* Instance; + std::map<std::string, std::pair<ircd_module*, Module*> > Modules; + public: EventHandlerList EventHandlers; - /** A list of ircd_module* module handles - * Note that this list is always exactly 255 in size. - * The actual number of loaded modules is available from GetModuleCount() - */ - ModuleHandleList handles; - - /** A list of Module* module classes - * Note that this list is always exactly 255 in size. - * The actual number of loaded modules is available from GetModuleCount() - */ - ModuleList modules; - /** Simple, bog-standard, boring constructor. */ ModuleManager(InspIRCd* Ins); |