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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user