diff options
| author | Adam <Adam@anope.org> | 2010-08-17 22:19:36 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-08-17 22:19:36 -0400 |
| commit | b180d5f975b3fd9a096a712adf9589c360831f72 (patch) | |
| tree | 34952f6bb9d25653f43c90a9ca603214af4ca52c /include | |
| parent | fa7684b3a3eea24ab72549aded6466eb0bede5fb (diff) | |
Always unload socketengines/database/protocl etc modules last, and fixed a potential crash in m_mysql when unloading when not in GDB
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index 307c83d87..51581438c 100644 --- a/include/modules.h +++ b/include/modules.h @@ -152,7 +152,8 @@ enum ModuleReturn /** Priority types which can be returned from Module::Prioritize() */ enum Priority { PRIORITY_FIRST, PRIORITY_DONTCARE, PRIORITY_LAST, PRIORITY_BEFORE, PRIORITY_AFTER }; -enum MODType { CORE, PROTOCOL, THIRD, SUPPORTED, QATESTED, ENCRYPTION, DATABASE, SOCKETENGINE }; +/* Module types, in the order in which they are unloaded. The order these are in is IMPORTANT */ +enum MODType { MT_BEGIN, THIRD, QATESTED, SUPPORTED, CORE, DATABASE, ENCRYPTION, PROTOCOL, SOCKETENGINE, MT_END }; struct Message; typedef std::multimap<Anope::string, Message *> message_map; @@ -1200,9 +1201,8 @@ class CoreExport ModuleManager /** Unloading all modules, NEVER call this when Anope isn't shutting down. * Ever. - * @param unload_proto true to unload the protocol module */ - static void UnloadAll(bool unload_proto); + static void UnloadAll(); /** Register a service * @param s The service |
