From de6b0ea134bdb95400053a2303a3f3eeca39ced6 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 Jan 2006 14:31:00 +0000 Subject: Reordered some stuff to allow a clever trick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2857 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3