diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-03-14 17:08:27 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-03-14 17:08:27 +0000 |
commit | 6ab1b8f131628b12c26289eaf21a68a56c6afc41 (patch) | |
tree | 1c48d0c1390b7eadb3245f54703e227d5d06d119 /src | |
parent | 13c26383c99e8ee664898bc9dfc3a0ee0e9044f2 (diff) |
BUILD : 1.7.18 (1231) BUGS : N/A NOTES : Ensure moduleData is still populated when anopeFini gets called when explicitaly unloading a single module.
git-svn-id: svn://svn.anope.org/anope/trunk@1231 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@950 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules.c b/src/modules.c index e0d0f8556..70d4621c5 100644 --- a/src/modules.c +++ b/src/modules.c @@ -720,10 +720,6 @@ int unloadModule(Module * m, User * u) return MOD_ERR_NOUNLOAD; } - if (prepForUnload(mod_current_module) != MOD_ERR_OK) { - return MOD_ERR_UNKNOWN; - } - func = (void (*)(void))ano_modsym(m->handle, "AnopeFini"); if (func) { mod_current_module_name = m->name; @@ -731,6 +727,10 @@ int unloadModule(Module * m, User * u) mod_current_module_name = NULL; } + if (prepForUnload(m) != MOD_ERR_OK) { + return MOD_ERR_UNKNOWN; + } + if ((ano_modclose(m->handle)) != 0) { alog(ano_moderr()); if (u) { |