diff options
-rw-r--r-- | src/modules/m_sanick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index 724553e3c..31813bedf 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -69,7 +69,7 @@ class CommandSanick : public Command { const std::string oldnick = target->nick; const std::string newnick = parameters[1]; - if (target->ChangeNick(newnick)) + if (!ServerInstance->FindNickOnly(newnick) && target->ChangeNick(newnick)) { ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SANICK to change " + oldnick + " to " + newnick); } |