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("restrictopernicks")) for (unsigned i = 0; i < Oper::opers.size(); ++i) {