diff options
| author | Peter Powell <petpow@saberuk.com> | 2016-03-07 23:42:40 +0000 |
|---|---|---|
| committer | Peter Powell <petpow@saberuk.com> | 2016-09-13 22:31:21 +0100 |
| commit | 35486d5521f6445ff998c3e91ca0c559587b8052 (patch) | |
| tree | 6f7d11db842055edd0c93aeabe7cdc3ed0429d07 | |
| parent | c4ebf02bce968e4846a0be72dfa7b104f21f5166 (diff) | |
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.
| -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 |
