summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-02 18:24:58 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-02 18:24:58 +0000
commit78450ee0247cf24539ef4e1194829736c2de83cf (patch)
treee42ffee3408f0e016a916edb8f40d5602cf8c5a2 /src/modules
parent7d8f6fde6e8f3b22aeb280f673ae9e727954783f (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_nicklock.cpp3
1 files changed, 3 insertions, 0 deletions
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]);