summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands/cmd_kill.cpp9
1 files changed, 8 insertions, 1 deletions
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 = "<nickname> <reason>"; }
+ CommandKill ( Module* parent) : Command(parent,"KILL",2,2) {
+ flags_needed = 'o';
+ syntax = "<nickname> <reason>";
+ 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<std::string>& parameters, User *user);
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
{
+ // local kills of remote users are routed via the OnRemoteKill hook
+ if (IS_LOCAL(user))
+ return ROUTE_LOCALONLY;
return ROUTE_BROADCAST;
}
};