summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-06-29 13:47:50 -0400
committerAdam <Adam@anope.org>2015-06-29 13:47:50 -0400
commitde023bab0a9edd7b0621ee6479447b2ea2492573 (patch)
tree3557889291dd32485c7965efd90cf5348b75950c
parent510a746f8d7cd373bfae4efc98a1ef9b13f2b4e9 (diff)
Don't allow registering service nicks
-rw-r--r--modules/commands/ns_register.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index 75ef5a9fb..5fe70437a 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -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)
{