mirror of
https://github.com/anope/anope.git
synced 2026-07-10 13:23:14 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user