1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 09:56:40 +02:00

Require that at least one encryption module is loaded.

This commit is contained in:
Sadie Powell
2024-03-12 21:57:38 +00:00
parent 11edba04fe
commit c8d8978cd0
+6 -2
View File
@@ -519,8 +519,12 @@ bool Anope::Init(int ac, char **av)
setuidgid();
#endif
Module *protocol = ModuleManager::FindFirstOf(PROTOCOL);
if (protocol == NULL)
auto *encryption = ModuleManager::FindFirstOf(ENCRYPTION);
if (!encryption)
throw CoreException("You must load an encryption module!");
auto *protocol = ModuleManager::FindFirstOf(PROTOCOL);
if (!protocol)
throw CoreException("You must load a protocol module!");
/* Write our PID to the PID file. */