mirror of
https://github.com/anope/anope.git
synced 2026-06-26 19:36:38 +02:00
Add an option to disable the encryption and database module checks.
This commit is contained in:
@@ -34,6 +34,9 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt
|
||||
if (ModuleManager::FindModule(this->name))
|
||||
throw CoreException("Module already exists!");
|
||||
|
||||
if (Anope::NoDB && type & DATABASE)
|
||||
throw ModuleException("Database modules may not be loaded");
|
||||
|
||||
if (Anope::NoThird && type & THIRD)
|
||||
throw ModuleException("Third party modules may not be loaded");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user