mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-12 13:19:49 +01:00
nefarious: use handle_kill (with kill path support) from ircs2s_common
Ref #239.
This commit is contained in:
parent
bfa69815b4
commit
5ef135d888
@ -1 +1,2 @@
|
|||||||
__version__ = '0.9-dev1'
|
# Automatically generated by setup.py
|
||||||
|
__version__ = '0.9-dev1-6-gbfa6981'
|
||||||
|
@ -1168,18 +1168,6 @@ class P10Protocol(IRCS2SProtocol):
|
|||||||
self.removeClient(numeric)
|
self.removeClient(numeric)
|
||||||
return {'text': args[0]}
|
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):
|
def handle_topic(self, source, command, args):
|
||||||
"""Handles TOPIC changes."""
|
"""Handles TOPIC changes."""
|
||||||
# <- ABAAA T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah
|
# <- ABAAA T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah
|
||||||
|
Loading…
Reference in New Issue
Block a user