diff options
author | Robby- <robby@chat.be> | 2013-11-04 02:59:16 +0100 |
---|---|---|
committer | Robby- <robby@chat.be> | 2013-11-04 02:59:16 +0100 |
commit | b901dfee84de64360e685702900bc5ee605b7bf1 (patch) | |
tree | 151fd015965327980e7f8691d394f3d33d467019 /modules/commands/ns_identify.cpp | |
parent | 6e8d2bf09dbc349df5e2d2094a83a60c6309b76b (diff) |
ns_identify: When logging failures, also show the account name, and that it exists or not.
Diffstat (limited to 'modules/commands/ns_identify.cpp')
-rw-r--r-- | modules/commands/ns_identify.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp index ede1c381c..a26e35d8c 100644 --- a/modules/commands/ns_identify.cpp +++ b/modules/commands/ns_identify.cpp @@ -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(); |