From 96c89b13b1fc952ff0362fdd10abe07b904aaf2b Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 22 Aug 2017 23:55:53 -0700 Subject: [PATCH] opercmds: send KILL hook payloads from the calling user This is so that Relay's kill warnings, etc. can be actually be routed back to the sender. --- plugins/opercmds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/opercmds.py b/plugins/opercmds.py index c262fb6..6f18b63 100644 --- a/plugins/opercmds.py +++ b/plugins/opercmds.py @@ -393,7 +393,7 @@ def kill(irc, source, args): reason = "Killed (%s (%s))" % (irc.get_friendly_name(sender), reason) irc.reply("Done.") - irc.call_hooks([sender, 'OPERCMDS_KILL', {'target': targetu, 'text': reason, + irc.call_hooks([source, 'OPERCMDS_KILL', {'target': targetu, 'text': reason, 'userdata': userdata, 'parse_as': 'KILL'}]) @utils.add_cmd