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])