summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-19 11:54:39 +0000
committerSadie Powell <sadie@witchery.services>2024-03-19 11:54:39 +0000
commita1972ba9b65e72eb046277162d4b5686c8d6bb15 (patch)
treea46bdb35e5176c4abec3898338da776bef2d7e2b /modules
parent5a72d8783ec5ac12d0a0c33e0b4f7e928a51157b (diff)
Prevent using enc_posix as a primary encryption module.
Diffstat (limited to 'modules')
-rw-r--r--modules/extra/enc_posix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/extra/enc_posix.cpp b/modules/extra/enc_posix.cpp
index a33f272fc..c2f60be5e 100644
--- a/modules/extra/enc_posix.cpp
+++ b/modules/extra/enc_posix.cpp
@@ -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