1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:56:40 +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
+10 -4
View File
@@ -382,6 +382,9 @@ bool Anope::Init(int ac, char **av)
if (GetCommandLineArgument("noexpire", 'e'))
Anope::NoExpire = true;
if (GetCommandLineArgument("nodb", 'b'))
Anope::NoDB = true;
if (GetCommandLineArgument("protocoldebug"))
Anope::ProtocolDebug = true;
@@ -552,11 +555,14 @@ bool Anope::Init(int ac, char **av)
setuidgid();
#endif
if (!ModuleManager::FindFirstOf(DATABASE))
throw CoreException("You must load a non-deprecated database module!");
if (!Anope::NoDB)
{
if (!ModuleManager::FindFirstOf(DATABASE))
throw CoreException("You must load a non-deprecated database module!");
if (!ModuleManager::FindFirstOf(ENCRYPTION))
throw CoreException("You must load a non-deprecated encryption module!");
if (!ModuleManager::FindFirstOf(ENCRYPTION))
throw CoreException("You must load a non-deprecated encryption module!");
}
if (!IRCD)
throw CoreException("You must load a protocol module!");