]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
Remove m_testcommand too
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index b88d4d2124041a4f74c141cb0a0bc59e0d25b5bc..fe669fdcb41a5f068f5e277d851a852b73e88e97 100644 (file)
@@ -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());
                }