mirror of
https://github.com/anope/anope.git
synced 2026-07-02 16:53:13 +02:00
ns_identify: When logging failures, also show the account name, and that it exists or not.
This commit is contained in:
@@ -44,8 +44,9 @@ class NSIdentifyRequest : public IdentifyRequest
|
||||
{
|
||||
if (source.GetUser())
|
||||
{
|
||||
Log(LOG_COMMAND, source, cmd) << "and failed to identify";
|
||||
if (NickAlias::Find(GetAccount()) != NULL)
|
||||
bool accountexists = NickAlias::Find(GetAccount()) != NULL;
|
||||
Log(LOG_COMMAND, source, cmd) << "and failed to identify to" << (accountexists ? " " : " nonexistent ") << "account " << GetAccount();
|
||||
if (accountexists)
|
||||
{
|
||||
source.Reply(PASSWORD_INCORRECT);
|
||||
source.GetUser()->BadPassword();
|
||||
|
||||
Reference in New Issue
Block a user