diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-22 11:47:18 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-22 11:47:18 +0000 |
commit | ea0ac23e43bc1d1a3a8417658dddc76fa94a4d50 (patch) | |
tree | fb8f9658d8cd777ca6350f3e83976fa5f9db1b4f /src | |
parent | dd6c5a57e8d567db0925af9fa7400698a51690b9 (diff) |
Fix bug 1000, do not allow a nick to be grouped if the IRCd protocol deems the nick invalid.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1925 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ns_group.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ns_group.c b/src/core/ns_group.c index 9272b8c87..888dc513f 100644 --- a/src/core/ns_group.c +++ b/src/core/ns_group.c @@ -96,6 +96,11 @@ int do_group(User * u) return MOD_CONT; } + if (!ircdproto->IsNickValid(u->nick)) { + notice_lang(s_NickServ, u, NICK_X_FORBIDDEN, u->nick); + return MOD_CONT; + } + if (RestrictOperNicks) { for (i = 0; i < RootNumber; i++) { if (stristr(u->nick, ServicesRoots[i]) && !is_oper(u)) { |