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

relay: look at the right prefix mode list when rejoining from KILL

This commit is contained in:
James Lu 2015-09-17 19:30:38 -07:00
parent cb83db4c1c
commit 63189e9990

View File

@ -673,7 +673,7 @@ def handle_kill(irc, numeric, command, args):
for remotechan in remoteirc.users[realuser[1]].channels: for remotechan in remoteirc.users[realuser[1]].channels:
localchan = findRemoteChan(remoteirc, irc, remotechan) localchan = findRemoteChan(remoteirc, irc, remotechan)
if localchan: if localchan:
modes = getPrefixModes(remoteirc, irc, localchan, realuser[1]) modes = getPrefixModes(remoteirc, irc, remotechan, realuser[1])
log.debug('(%s) relay handle_kill: userpair: %s, %s', irc.name, modes, realuser) log.debug('(%s) relay handle_kill: userpair: %s, %s', irc.name, modes, realuser)
client = getRemoteUser(remoteirc, irc, realuser[1]) client = getRemoteUser(remoteirc, irc, realuser[1])
irc.proto.sjoinServer(irc, irc.sid, localchan, [(modes, client)]) irc.proto.sjoinServer(irc, irc.sid, localchan, [(modes, client)])