diff --git a/coremods/control.py b/coremods/control.py index 8ba2e9d..a94254b 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -25,7 +25,7 @@ def _shutdown(irc=None): except: # But don't allow it to crash the server. log.exception('coremods.control: Error occurred in die() of plugin %s, skipping...', name) - for ircobj in world.networkobjects.values(): + for ircobj in world.networkobjects.copy().values(): # Disconnect all our networks. remove_network(ircobj)