mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +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:
parent
bd6272abf6
commit
96c89b13b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user