diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-29 14:33:25 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-29 14:33:25 +0200 |
commit | 6c4a6b1753926f7de2cc210bf25d1b3c87c181e9 (patch) | |
tree | ce7baa28bb5df3a10930b29d6c5cc8d4b1e520c0 /include/modules.h | |
parent | f9455b925dcccfed2accbeb282f82a9a3d8458f6 (diff) |
Deduplicate mode unregistering code in ModuleManager::DoSafeUnload() and extract into a method
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 4f18524c8..02460a38e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1037,6 +1037,12 @@ class CoreExport ModuleManager : public fakederef<ModuleManager> */ bool PrioritizeHooks(); + /** Unregister all user modes or all channel modes owned by a module + * @param mod Module whose modes to unregister + * @param modetype MODETYPE_USER to unregister user modes, MODETYPE_CHANNEL to unregister channel modes + */ + void UnregisterModes(Module* mod, ModeType modetype); + public: typedef std::map<std::string, Module*> ModuleMap; |