From c5b94cdf2111df041047bd9077714904fb043eb9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 23 Jun 2019 17:39:06 -0700 Subject: [PATCH] control: ignore virtual servers in rehash --- coremods/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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']: