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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user