summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-08-05 21:32:59 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-08-05 21:32:59 +0000
commitf1a17e7a80b63988f5be3e433e717d7444d42642 (patch)
treecfa8e3c7baf77421a4ddee6e57985f5abb2e818b /src
parent4800a48be3779a91788dc2cec8015b777f619ee8 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules.c4
1 files changed, 4 insertions, 0 deletions
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);