3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

relay: fix local kicks not quitting users on remote networks when the target doesn't share any channels as a result

Closes #120.
This commit is contained in:
James Lu 2015-10-18 10:25:59 -07:00
parent 6034333682
commit 5327de9317

View File

@ -822,8 +822,8 @@ def handle_kick(irc, source, command, args):
remoteirc.proto.kickServer(rsid, remotechan, real_target, text)
# If the target isn't on any channels, quit them.
if origuser and origuser[0] != remoteirc.name and not remoteirc.users[real_target].channels:
del relayusers[origuser][remoteirc.name]
if remoteirc != irc and (not remoteirc.users[real_target].channels) and not origuser:
del relayusers[(irc.name, target)][remoteirc.name]
remoteirc.proto.quitClient(real_target, 'Left all shared channels.')
if origuser and not irc.users[target].channels: