summaryrefslogtreecommitdiff
path: root/modules/protocol/ratbox.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-21 18:06:38 -0500
committerAdam <Adam@anope.org>2013-11-21 18:06:38 -0500
commite1264a5913a8e5869350521913f9e36841ae4cee (patch)
tree628f159f441c0b160eee1c7f2f46c6f0aea26838 /modules/protocol/ratbox.cpp
parent18f423226cdac8039b0077e1fc63c0719160544f (diff)
Re-find dependant protocol modules on unload, they can be reloaded from under us while we are running
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r--modules/protocol/ratbox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index 90bfa65a7..2b594be47 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -298,6 +298,7 @@ class ProtoRatbox : public Module
~ProtoRatbox()
{
+ m_hybrid = ModuleManager::FindModule("hybrid");
ModuleManager::UnloadModule(m_hybrid, NULL);
}
};