mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:56:38 +02:00
Require that users have a non-deprecated database module loaded.
This commit is contained in:
+4
-2
@@ -552,8 +552,10 @@ bool Anope::Init(int ac, char **av)
|
||||
setuidgid();
|
||||
#endif
|
||||
|
||||
auto *encryption = ModuleManager::FindFirstOf(ENCRYPTION);
|
||||
if (!encryption)
|
||||
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 (!IRCD)
|
||||
|
||||
Reference in New Issue
Block a user