diff options
| author | Adam <Adam@anope.org> | 2015-06-29 13:47:50 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2015-06-29 13:47:50 -0400 |
| commit | de023bab0a9edd7b0621ee6479447b2ea2492573 (patch) | |
| tree | 3557889291dd32485c7965efd90cf5348b75950c /modules | |
| parent | 510a746f8d7cd373bfae4efc98a1ef9b13f2b4e9 (diff) | |
Don't allow registering service nicks
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/ns_register.cpp | 6 |
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) { |
