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

relay: rejoin killed users to the RIGHT channels

This commit is contained in:
James Lu 2015-09-17 19:15:51 -07:00
parent 2e0a5e52e2
commit 8faf86aa8f

View File

@ -670,7 +670,7 @@ def handle_kill(irc, numeric, command, args):
# client and rejoin it to its channels.
del relayusers[realuser][irc.name]
remoteirc = world.networkobjects[realuser[0]]
for remotechan in remoteirc.channels.copy():
for remotechan in remoteirc.users[realuser[1]].channels:
localchan = findRemoteChan(remoteirc, irc, remotechan)
if localchan:
modes = getPrefixModes(remoteirc, irc, localchan, realuser[1])