From 241282a3954a17608e9e438a24074567207c5589 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 6 Aug 2006 08:54:51 +0000 Subject: 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 --- src/modules.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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); -- cgit