summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-09-11 15:46:42 +0100
committerSadie Powell <sadie@witchery.services>2020-09-28 15:28:26 +0100
commitc7e26c5f679465304fb7ffb27d131857a1030b2e (patch)
tree9a1a3df952a7570dbe47780c17bd5a835da85260 /src
parent8e0e1806a47e6fa78f884666b55c04edf11fd66c (diff)
Remove nickserv/getpass and Anope::Decrypt.
There is no point having these now plain text passwords are deprecated.
Diffstat (limited to 'src')
-rw-r--r--src/misc.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index 0a53aeb82..e8bfe66fe 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -514,24 +514,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;
- FOREACH_RESULT(OnDecrypt, MOD_RESULT, (hashm, src, dest));
- if (MOD_RESULT == EVENT_ALLOW)
- return true;
-
- return false;
-}
-
Anope::string Anope::printf(const char *fmt, ...)
{
va_list args;