From a7f5068bd8c6c7a5f06d340492d1f07617ba580d Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 26 Nov 2015 22:50:20 -0800 Subject: [PATCH] relay: squash another "dictionary changed size during iteration" bug --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index f4a40d0..49500a4 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -471,7 +471,7 @@ def isRelayClient(irc, user): ### EVENT HANDLER INTERNALS def relayJoins(irc, channel, users, ts, burst=True): - for name, remoteirc in world.networkobjects.items(): + for name, remoteirc in world.networkobjects.copy().items(): queued_users = [] if name == irc.name or not remoteirc.connected.is_set(): # Don't relay things to their source network...