diff options
| author | Adam <Adam@anope.org> | 2012-12-02 04:31:50 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-12-02 04:31:50 -0500 |
| commit | 7a865b6b2828b417e4d91441e5437a7c826cdc80 (patch) | |
| tree | c97a5e61aab4431d3d073fa73c100730f6e0125a /modules/commands/ns_identify.cpp | |
| parent | faaaae365a10f3a5aaa93a1354d00d5ed04e77b6 (diff) | |
Only bad-password users when the account theyre trying to identify for actually exists
Diffstat (limited to 'modules/commands/ns_identify.cpp')
| -rw-r--r-- | modules/commands/ns_identify.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp index 4796e7bb6..f1e0a7d3d 100644 --- a/modules/commands/ns_identify.cpp +++ b/modules/commands/ns_identify.cpp @@ -48,8 +48,13 @@ class NSIdentifyRequest : public IdentifyRequest if (source.GetUser()) { Log(LOG_COMMAND, source, cmd) << "and failed to identify"; - source.Reply(PASSWORD_INCORRECT); - source.GetUser()->BadPassword(); + if (NickAlias::Find(GetAccount()) != NULL) + { + source.Reply(PASSWORD_INCORRECT); + source.GetUser()->BadPassword(); + } + else + source.Reply(NICK_X_NOT_REGISTERED, GetAccount().c_str()); } } }; |
