diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-23 14:31:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-23 14:31:00 +0000 |
commit | de6b0ea134bdb95400053a2303a3f3eeca39ced6 (patch) | |
tree | 725d0d78873bd378d756bce18d67ae20964921a8 /src | |
parent | fbccd7e83126ca1ad3e14291aaf771ef4f77121a (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.cpp | 3 |
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); |