From 4525b8117ef2f872768d1b696484f3b55b133eb1 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 --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 2955dab..6645a8e 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -673,7 +673,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: + for remotechan in remoteirc.channels.copy(): localchan = findRemoteChan(remoteirc, irc, remotechan) if localchan: modes = getPrefixModes(remoteirc, irc, localchan, realuser[1])