mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
nefarious: relay KILL user data properly
This commit is contained in:
parent
4b4db64705
commit
81d2450460
@ -1091,9 +1091,13 @@ class P10Protocol(Protocol):
|
||||
"""Handles incoming KILLs."""
|
||||
# <- ABAAA D AyAAA :nefarious.midnight.vpn!GL (test)
|
||||
killed = args[0]
|
||||
if killed in self.irc.users:
|
||||
|
||||
# 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': self.irc.users.get(killed)}
|
||||
return {'target': killed, 'text': args[1], 'userdata': data}
|
||||
|
||||
def handle_squit(self, numeric, command, args):
|
||||
"""Handles incoming SQUITs."""
|
||||
|
Loading…
Reference in New Issue
Block a user