1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 12:46:37 +02:00

Remove nickserv/getpass and Anope::Decrypt.

There is no point having these now plain text passwords are deprecated.
This commit is contained in:
Sadie Powell
2020-09-11 15:46:42 +01:00
parent 8e0e1806a4
commit c7e26c5f67
8 changed files with 5 additions and 130 deletions
-18
View File
@@ -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;