From 3111c6053e3e23a136e79eace79f530e368bdfd7 Mon Sep 17 00:00:00 2001 From: dz Date: Sun, 26 Jul 2009 11:26:34 +0000 Subject: don't send out global snotices from every server on NICKUNLOCK, fixes bug #892 reported by Taros git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11444 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nicklock.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index b88d4d212..fe669fdcb 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -128,12 +128,11 @@ class CommandNickunlock : public Command } } - /* If we made it this far, the command is going out on the wire so send local snotice */ - ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]); - if (target) { target->Shrink("nick_locked"); + if (IS_LOCAL(target)) + ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]); if (IS_LOCAL(user)) user->WriteNumeric(945, "%s %s :Nickname now unlocked.",user->nick.c_str(),target->nick.c_str()); } -- cgit v1.2.3