Filter the own server out of <link> and <autoconnect> tags
This commit is contained in:
parent
b3b63a7e47
commit
404341535c
1 changed files with 3 additions and 1 deletions
|
@ -83,11 +83,12 @@
|
|||
{% for ac in inspircd_autoconnect %}
|
||||
<autoconnect
|
||||
{% if 'period' in ac %}period="{{ ac.period }}"{% endif %}
|
||||
server="{{ ac.servers | join('') }}">
|
||||
server="{{ ac.servers | select('ne', inspircd_server_hostname) | join(' ') }}">
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% for name, link in inspircd_links.items() %}
|
||||
{% if name != inspircd_server_hostname %}
|
||||
<link
|
||||
name="{{ name }}"
|
||||
ipaddr="{{ link.ipaddr }}"
|
||||
|
@ -101,6 +102,7 @@
|
|||
{% if 'ssl' in link %}ssl="{{ link.ssl }}"{% endif %}
|
||||
{% if 'statshidden' in link %}statshidden="{{ link.statshidden | ternary('yes', 'no') }}"{% endif %}
|
||||
{% if 'timeout' in link %}timeout="{{ link.timeout }}"{% endif %}>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for uline in inspircd_ulines %}
|
||||
|
|
Loading…
Add table
Reference in a new issue