mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
control: ignore virtual servers in rehash
This commit is contained in:
parent
f2b6de8889
commit
c5b94cdf21
@ -111,9 +111,9 @@ def rehash():
|
|||||||
|
|
||||||
for network, ircobj in world.networkobjects.copy().items():
|
for network, ircobj in world.networkobjects.copy().items():
|
||||||
# Server was removed from the config file, disconnect them.
|
# Server was removed from the config file, disconnect them.
|
||||||
log.debug('rehash: checking if %r is in new conf still.', network)
|
log.debug('rehash: checking if %r is still in new conf.', network)
|
||||||
if hasattr(ircobj, 'virtual_parent'):
|
if ircobj.has_cap('virtual-server') or hasattr(ircobj, 'virtual_parent'):
|
||||||
log.debug('rehash: not removing network object %r since it has a virtual parent.', network)
|
log.debug('rehash: not removing network %r since it is a virtual server.', network)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if network not in new_conf['servers']:
|
if network not in new_conf['servers']:
|
||||||
|
Loading…
Reference in New Issue
Block a user