diff options
Diffstat (limited to 'modules/commands/ns_group.cpp')
| -rw-r--r-- | modules/commands/ns_group.cpp | 11 |
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()); } }; |
