From 8d44830d5c5b12abd6764038d7e9983998acdfc6 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 31 Aug 2015 15:04:06 -0700 Subject: [PATCH] relay.handle_kill: prevent yet another RuntimeError (cherry picked from commit 4525b8117ef2f872768d1b696484f3b55b133eb1) Conflicts: plugins/relay.py --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index f65ca15..2dc7cf1 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -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])