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:
+10
-4
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user