3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-28 13:42:37 +01:00

control: ignore virtual servers in rehash

This commit is contained in:
James Lu 2019-06-23 17:39:06 -07:00
parent f2b6de8889
commit c5b94cdf21

View File

@ -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']: