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:
+6
-2
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user