1
0
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:
Adam
2015-06-29 13:47:50 -04:00
parent 510a746f8d
commit de023bab0a
+6
View File
@@ -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)
{