1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:26:38 +02:00

Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9

This commit is contained in:
Adam
2012-05-06 21:44:11 -04:00
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -36,6 +36,12 @@ class CommandNSGroup : public Command
return;
}
if (!ircdproto->IsNickValid(u->nick))
{
source.Reply(NICK_CANNOT_BE_REGISTERED, u->nick.c_str());
return;
}
if (Config->RestrictOperNicks)
for (unsigned i = 0; i < Config->Opers.size(); ++i)
{
+6
View File
@@ -150,6 +150,12 @@ class CommandNSRegister : public Command
return;
}
if (!ircdproto->IsNickValid(u->nick))
{
source.Reply(NICK_CANNOT_BE_REGISTERED, u->nick.c_str());
return;
}
if (Config->RestrictOperNicks)
for (unsigned i = 0; i < Config->Opers.size(); ++i)
{