diff options
-rw-r--r-- | modules/encryption/none.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/encryption/none.cpp b/modules/encryption/none.cpp index 317abb132..840ab7b42 100644 --- a/modules/encryption/none.cpp +++ b/modules/encryption/none.cpp @@ -30,7 +30,8 @@ class ENone : public Module , EventHook<Event::Decrypt>(this) , EventHook<Event::CheckAuthentication>(this) { - + if (ModuleManager::FindFirstOf(ENCRYPTION) == this) + throw ModuleException("enc_none is deprecated and can not be used as a primary encryption method"); } EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override |