diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-06 08:54:51 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-06 08:54:51 +0000 |
commit | 241282a3954a17608e9e438a24074567207c5589 (patch) | |
tree | 36f991946b994da505ba27793eb3cbc7078b6344 /src | |
parent | 7603d145b28cccd0d38b9d2667c2ba2f36603aa2 (diff) |
BUILD : 1.7.14 (1121) BUGS : 491 NOTES : anope segfault on shutdown
git-svn-id: svn://svn.anope.org/anope/trunk@1121 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@845 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules.c b/src/modules.c index 91d4105b4..bbe44b18b 100644 --- a/src/modules.c +++ b/src/modules.c @@ -245,6 +245,7 @@ void modules_unload_all(boolean fini) mh = MODULE_HASH[idx]; while (mh) { next = mh->next; + mod_current_module = mh->m; if(fini) { func = (void (*)(void))ano_modsym(mh->m->handle, "AnopeFini"); if (func) { @@ -738,10 +739,6 @@ int prepForUnload(Module * m) return MOD_ERR_PARAMS; } - if (m->type == PROTOCOL) { - return MOD_ERR_NOUNLOAD; /* you cant unload protocol modules */ - } - /* Kill any active callbacks this module has */ moduleCallBackPrepForUnload(m->name); |