From 6c4a6b1753926f7de2cc210bf25d1b3c87c181e9 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 29 Aug 2016 14:33:25 +0200 Subject: Deduplicate mode unregistering code in ModuleManager::DoSafeUnload() and extract into a method --- include/modules.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/modules.h') 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 */ 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 ModuleMap; -- cgit v1.2.3