summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index a96dfe5e8..2a835f10d 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -567,6 +567,7 @@ bool ModuleManager::Unload(const char* filename)
this->DetachAll(modfind->second);
ServerInstance->Parser->RemoveCommands(modfind->second);
+ ServerInstance->Modes->RemoveModes(modfind->second);
ServerInstance->GlobalCulls.AddItem(modfind->second);
Modules.erase(modfind);