summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:28:23 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:28:23 +0000
commitbb47ab8f4123149a7ee28a0abf6edc1e97bc2be7 (patch)
treecf67e20e199d4dfeab9bf6fef4482a09f6dceeb2 /src/core
parent10dcb3d8a44d741f5a16853016a1118664b75e8a (diff)
Add Module::SetPermanent() and Module::GetPermanent(), used to mark a module as not unloadable.
Used for os_modunload, as unloading it would cause issues. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1679 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/os_modunload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/os_modunload.c b/src/core/os_modunload.c
index 8fde45fc8..96790357f 100644
--- a/src/core/os_modunload.c
+++ b/src/core/os_modunload.c
@@ -29,6 +29,7 @@ class OSModUnLoad : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
+ this->SetPermanent(true);
c = createCommand("MODUNLOAD", do_modunload, is_services_root, -1, -1, -1, -1, OPER_HELP_MODUNLOAD);
this->AddCommand(OPERSERV, c, MOD_UNIQUE);