From 35486d5521f6445ff998c3e91ca0c559587b8052 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 7 Mar 2016 23:42:40 +0000 Subject: Prevent using enc_none as the main encryption module. Plain text passwords are a terrible idea at best and are illegal at worst. Lets not support them. --- modules/encryption/none.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/encryption') 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(this) , EventHook(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 -- cgit