summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 1b636bc87..9521f1b22 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -508,6 +508,9 @@ bool InspIRCd::UnloadModule(const char* filename)
modules[j]->OnCleanup(TYPE_USER,u->second);
}
+ /* Tidy up any dangling resolvers */
+ this->Res->CleanResolvers(modules[j]);
+
FOREACH_MOD_I(this,I_OnUnloadModule,OnUnloadModule(modules[j],Config->module_names[j]));
for(int t = 0; t < 255; t++)