mirror of
https://github.com/anope/anope.git
synced 2026-06-30 07:36:36 +02:00
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
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user