summaryrefslogtreecommitdiff
path: root/modules/commands/ns_group.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-12-02 04:31:50 -0500
committerAdam <Adam@anope.org>2012-12-02 04:31:50 -0500
commit7a865b6b2828b417e4d91441e5437a7c826cdc80 (patch)
treec97a5e61aab4431d3d073fa73c100730f6e0125a /modules/commands/ns_group.cpp
parentfaaaae365a10f3a5aaa93a1354d00d5ed04e77b6 (diff)
Only bad-password users when the account theyre trying to identify for actually exists
Diffstat (limited to 'modules/commands/ns_group.cpp')
-rw-r--r--modules/commands/ns_group.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp
index f4a464d28..ff4d5029e 100644
--- a/modules/commands/ns_group.cpp
+++ b/modules/commands/ns_group.cpp
@@ -62,9 +62,14 @@ class NSGroupRequest : public IdentifyRequest
if (!source.GetUser())
return;
- Log(LOG_COMMAND, source, cmd) << "failed group for " << target->nick;
- source.Reply(PASSWORD_INCORRECT);
- source.GetUser()->BadPassword();
+ Log(LOG_COMMAND, source, cmd) << "and failed to group to " << target->nick;
+ if (NickAlias::Find(GetAccount()) != NULL)
+ {
+ source.Reply(PASSWORD_INCORRECT);
+ source.GetUser()->BadPassword();
+ }
+ else
+ source.Reply(NICK_X_NOT_REGISTERED, GetAccount().c_str());
}
};