From 78450ee0247cf24539ef4e1194829736c2de83cf Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 May 2009 18:24:58 +0000 Subject: Patch from eLement notifying the user who sent a NICKLOCK that the target was locked successfully, fixes bug #854. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11349 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nicklock.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index cedd708fc..b855c6ac2 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -58,11 +58,14 @@ class CommandNicklock : public Command user->WriteServ("NOTICE %s :*** Invalid nickname '%s'", user->nick.c_str(), parameters[1].c_str()); return CMD_FAILURE; } + + user->WriteServ("947 %s %s :Nickname now locked.", user->nick, source->nick"); } /* If we made it this far, extend the user */ if (target) { + // This has to be done *here*, because this metadata must be stored netwide. target->Extend("nick_locked", "ON"); ServerInstance->SNO->WriteToSnoMask('a', user->nick+" used NICKLOCK to change and hold "+target->nick+" to "+parameters[1]); -- cgit v1.2.3