From 9336468f5bfa60318cb57db5126047147b7a21cb Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 5 Oct 2009 15:43:28 +0000 Subject: Run DelMode and DelModeWatcher in RemoveModule git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11799 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules.cpp') 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); -- cgit v1.2.3