From 3b0f52c92b744836520af4b9915478569f297d39 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 23 May 2016 19:09:47 +0100 Subject: Remove Anope::Decrypt now encryption is mandated. --- src/misc.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/misc.cpp') 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(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; -- cgit