From f1a17e7a80b63988f5be3e433e717d7444d42642 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 5 Aug 2006 21:32:59 +0000 Subject: BUILD : 1.7.14 (1115) BUGS : 491 NOTES : Dont allow IRCD Protocol modules to be unloaded git-svn-id: svn://svn.anope.org/anope/trunk@1115 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@839 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules.c') diff --git a/src/modules.c b/src/modules.c index b8aff99cc..91d4105b4 100644 --- a/src/modules.c +++ b/src/modules.c @@ -738,6 +738,10 @@ 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