3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

nefarious: use handle_kill (with kill path support) from ircs2s_common

Ref #239.
This commit is contained in:
James Lu 2016-07-05 00:30:53 -07:00
parent bfa69815b4
commit 5ef135d888
2 changed files with 2 additions and 13 deletions

View File

@ -1 +1,2 @@
__version__ = '0.9-dev1'
# Automatically generated by setup.py
__version__ = '0.9-dev1-6-gbfa6981'

View File

@ -1168,18 +1168,6 @@ class P10Protocol(IRCS2SProtocol):
self.removeClient(numeric)
return {'text': args[0]}
def handle_kill(self, numeric, command, args):
"""Handles incoming KILLs."""
# <- ABAAA D AyAAA :nefarious.midnight.vpn!GL (test)
killed = args[0]
# Back up the target user data before removing it, so we can send it via a hook.
data = self.irc.users.get(killed)
if data:
self.removeClient(killed)
return {'target': killed, 'text': args[1], 'userdata': data}
def handle_topic(self, source, command, args):
"""Handles TOPIC changes."""
# <- ABAAA T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah