mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
opercmds: format KILL reasons properly in kill()
This commit is contained in:
parent
e0f050c195
commit
ec0f2714e2
@ -179,6 +179,10 @@ def kill(irc, source, args):
|
||||
return
|
||||
|
||||
irc.proto.kill(sender, targetu, reason)
|
||||
|
||||
# Format the kill reason properly in hooks.
|
||||
reason = "Killed (%s (%s))" % (irc.getFriendlyName(sender), reason)
|
||||
|
||||
irc.callHooks([sender, 'CHANCMDS_KILL', {'target': targetu, 'text': reason,
|
||||
'userdata': userdata, 'parse_as': 'KILL'}])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user