diff options
author | Peter Powell <petpow@saberuk.com> | 2016-05-23 19:09:47 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-09-13 22:33:41 +0100 |
commit | 3b0f52c92b744836520af4b9915478569f297d39 (patch) | |
tree | 1816865eccc62fb60a9e546a298dfc74e51504f4 /src/misc.cpp | |
parent | 164ad71fc36f79efc823b7523de79603f6e0ac27 (diff) |
Remove Anope::Decrypt now encryption is mandated.
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index f5e610133..dc8d68f43 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -492,23 +492,6 @@ void Anope::Encrypt(const Anope::string &src, Anope::string &dest) static_cast<void>(MOD_RESULT); } -bool Anope::Decrypt(const Anope::string &src, Anope::string &dest) -{ - size_t pos = src.find(':'); - if (pos == Anope::string::npos) - { - Log() << "Error: Anope::Decrypt() called with invalid password string (" << src << ")"; - return false; - } - Anope::string hashm(src.begin(), src.begin() + pos); - - EventReturn MOD_RESULT = EventManager::Get()->Dispatch(&Event::Decrypt::OnDecrypt, hashm, src, dest); - if (MOD_RESULT == EVENT_ALLOW) - return true; - - return false; -} - Anope::string Anope::printf(const char *fmt, ...) { va_list args; |