diff options
author | Adam <adam@sigterm.info> | 2013-11-09 05:40:58 -0800 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2013-11-09 05:40:58 -0800 |
commit | d1248d12491375f2496673d9f87842ff8dee9fa4 (patch) | |
tree | 94ed2ad0d522a5f6ce478cabb116eef84606b8d1 | |
parent | afc5c91a09e98a597bfbc458647d363aff303b71 (diff) | |
parent | b901dfee84de64360e685702900bc5ee605b7bf1 (diff) |
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.
-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(); |