summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-13 02:49:05 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-13 02:49:05 +0000
commit15e6efe1aec69a0d134a8dcfbd6ea8220428b0cb (patch)
treedb5eb87c88f935acb558d1c22a894534652c381d
parent3372b1ac0db7611f3936bbc6f77d43ca7a2c6736 (diff)
Translate UIDs properly in m_sakick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11373 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_sakick.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp
index 5755281d4..d171abe57 100644
--- a/src/modules/m_sakick.cpp
+++ b/src/modules/m_sakick.cpp
@@ -24,7 +24,7 @@ class CommandSakick : public Command
{
this->source = "m_sakick.so";
syntax = "<channel> <nick> [reason]";
- TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END);
+ TRANSLATE4(TR_TEXT, TR_NICK, TR_TEXT, TR_END);
}
CmdResult Handle (const std::vector<std::string>& parameters, User *user)
@@ -72,8 +72,7 @@ class CommandSakick : public Command
if (IS_LOCAL(user))
{
/* Locally issued command; send the snomasks */
- ServerInstance->SNO->WriteToSnoMask('a', std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]);
- ServerInstance->PI->SendSNONotice("A", std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]);
+ ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]);
}
return CMD_SUCCESS;