3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

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.
This commit is contained in:
James Lu 2017-08-22 23:55:53 -07:00
parent bd6272abf6
commit 96c89b13b1

View File

@ -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