From 62a145ce248b386f6412108ad1b60a2c5bed46c1 Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 11 Feb 2010 15:29:38 +0000 Subject: Fix double-sending of locally sourced kills git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12434 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_kill.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_kill.cpp') diff --git a/src/commands/cmd_kill.cpp b/src/commands/cmd_kill.cpp index 17d4c6629..3490199c8 100644 --- a/src/commands/cmd_kill.cpp +++ b/src/commands/cmd_kill.cpp @@ -23,7 +23,11 @@ class CommandKill : public Command public: /** Constructor for kill. */ - CommandKill ( Module* parent) : Command(parent,"KILL",2,2) { flags_needed = 'o'; syntax = " "; } + CommandKill ( Module* parent) : Command(parent,"KILL",2,2) { + flags_needed = 'o'; + syntax = " "; + TRANSLATE3(TR_NICK, TR_TEXT, TR_END); + } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command @@ -33,6 +37,9 @@ class CommandKill : public Command CmdResult Handle(const std::vector& parameters, User *user); RouteDescriptor GetRouting(User* user, const std::vector& parameters) { + // local kills of remote users are routed via the OnRemoteKill hook + if (IS_LOCAL(user)) + return ROUTE_LOCALONLY; return ROUTE_BROADCAST; } }; -- cgit v1.2.3