summaryrefslogtreecommitdiff
path: root/modules/extra/enc_posix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/enc_posix.cpp')
-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