mirror of
https://github.com/anope/anope.git
synced 2026-07-01 09:36:36 +02:00
Don't allow registering service nicks
This commit is contained in:
@@ -158,6 +158,12 @@ class CommandNSRegister : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
if (BotInfo::Find(u_nick, true))
|
||||
{
|
||||
source.Reply(NICK_CANNOT_BE_REGISTERED, u_nick.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config->GetModule("nickserv")->Get<bool>("restrictopernicks"))
|
||||
for (unsigned i = 0; i < Oper::opers.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user