From ea0ac23e43bc1d1a3a8417658dddc76fa94a4d50 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Thu, 22 Jan 2009 11:47:18 +0000 Subject: [PATCH] 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 --- src/core/ns_group.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) {