1
0
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:
Sadie Powell
2025-08-01 13:57:47 +01:00
parent 1245b43ade
commit 02aeb254ee
4 changed files with 15 additions and 6 deletions
+3
View File
@@ -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");