1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 16:13:12 +02:00

Prevent using enc_posix as a primary encryption module.

This commit is contained in:
Sadie Powell
2024-03-19 11:54:39 +00:00
parent 5a72d8783e
commit a1972ba9b6
+2
View File
@@ -19,6 +19,8 @@ public:
EPOSIX(const Anope::string &modname, const Anope::string &creator)
: Module(modname, creator, ENCRYPTION | VENDOR)
{
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
throw ModuleException("enc_posix can not be used as a primary encryption method");
}
void OnCheckAuthentication(User *, IdentifyRequest *req) override