1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 21:03:13 +02:00

Merge pull request #25 from Robby-/1.9-nsidfaillogacctnames

ns_identify: When logging failures, also show the account name, and that it exists or not.
This commit is contained in:
Adam
2013-11-09 05:40:58 -08:00
+3 -2
View File
@@ -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();