diff --git a/coremods/control.py b/coremods/control.py index e7f69fa..9bd98f6 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -111,9 +111,9 @@ def rehash(): for network, ircobj in world.networkobjects.copy().items(): # Server was removed from the config file, disconnect them. - log.debug('rehash: checking if %r is in new conf still.', network) - if hasattr(ircobj, 'virtual_parent'): - log.debug('rehash: not removing network object %r since it has a virtual parent.', network) + log.debug('rehash: checking if %r is still in new conf.', network) + if ircobj.has_cap('virtual-server') or hasattr(ircobj, 'virtual_parent'): + log.debug('rehash: not removing network %r since it is a virtual server.', network) continue if network not in new_conf['servers']: