summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index e7ceae739..ac94b6f90 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -373,6 +373,8 @@ bool InspIRCd::UnloadModule(const char* filename)
modules[j]->OnCleanup(TYPE_USER,u->second);
}
+ FOREACH_MOD(I_OnUnloadModule,OnUnloadModule(modules[j],Config->module_names[j]));
+
for(int t = 0; t < 255; t++)
{
Config->global_implementation[t] -= Config->implement_lists[j][t];
@@ -388,7 +390,6 @@ bool InspIRCd::UnloadModule(const char* filename)
}
}
- FOREACH_MOD(I_OnUnloadModule,OnUnloadModule(modules[j],Config->module_names[j]));
// found the module
log(DEBUG,"Deleting module...");
erase_module(j);