3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

relay.handle_kill: prevent yet another RuntimeError

(cherry picked from commit 4525b8117e)

Conflicts:
	plugins/relay.py
This commit is contained in:
James Lu 2015-08-31 15:04:06 -07:00
parent 6d6606900e
commit 8d44830d5c

View File

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