summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-05 15:43:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-05 15:43:28 +0000
commit9336468f5bfa60318cb57db5126047147b7a21cb (patch)
treefa21c838f2c706463ed25305d351397d9d5ced47 /src/modules.cpp
parent98b252507021cd63ac8e6fd92185325562eb3575 (diff)
Run DelMode and DelModeWatcher in RemoveModule
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11799 e03df62e-2008-0410-955e-edbf42e46eb7
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);