summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 67c90b128..db41a757a 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -561,8 +561,8 @@ bool ModuleManager::Unload(const char* filename)
ServerInstance->Parser->RemoveCommands(modfind->second.second);
- delete modfind->second.second;
- delete modfind->second.first;
+ ServerInstance->GlobalCulls.AddItem(modfind->second.second);
+ ServerInstance->GlobalCulls.AddItem(modfind->second.first);
Modules.erase(modfind);
ServerInstance->Logs->Log("MODULE", DEFAULT,"Module %s unloaded",filename);