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 --- Changes | 1 + src/modules.c | 4 ++++ version.log | 7 ++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index c2a44aed3..08745993c 100644 --- a/Changes +++ b/Changes @@ -57,6 +57,7 @@ Provided by Anope Dev. - 2006 08/05 F os_info save on unload. [#523] 08/05 F Externed doValidHost call for modules to use. [#570] 08/05 F Lang files now support %M for use with StrictPrivMsg. [#565] +08/05 F Dont unload the ircd module in unload_all(). [#491] Provided by ThaPrince - 2006 05/19 A Plexus 3 support. [ #00] 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); diff --git a/version.log b/version.log index 78d8993b6..5980f6105 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="" -VERSION_BUILD="1114" +VERSION_BUILD="1115" # $Log$ # +# BUILD : 1.7.14 (1115) +# BUGS : 491 +# NOTES : Dont allow IRCD Protocol modules to be unloaded +# +# # BUILD : 1.7.14 (1114) # BUGS : 565 # NOTES : Updated all lang files -- cgit