summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 14:31:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 14:31:00 +0000
commitde6b0ea134bdb95400053a2303a3f3eeca39ced6 (patch)
tree725d0d78873bd378d756bce18d67ae20964921a8 /src
parentfbccd7e83126ca1ad3e14291aaf771ef4f77121a (diff)
Reordered some stuff to allow a clever trick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2857 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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);