Fix indentation in inspircd.conf.j2

This commit is contained in:
s3lph 2020-12-26 17:01:06 +01:00
parent 80ab2d8312
commit 818b2f3edc

View file

@ -98,15 +98,34 @@
{% for bind in inspircd_bind %} {% for bind in inspircd_bind %}
<bind <bind
{% if 'address' in bind %}address="{{ bind.address }}"{% endif %} {% if 'address' in bind %}
{% if 'port' in bind %}port="{{ bind.port }}"{% endif %} address="{{ bind.address }}"
{% if 'defer' in bind %}defer="{{ bind.defer }}"{% endif %} {% endif %}
{% if 'free' in bind %}free="{{ bind.free | ternary('yes', 'no') }}"{% endif %} {% if 'port' in bind %}
{% if 'path' in bind %}path="{{ path.cafile }}"{% endif %} port="{{ bind.port }}"
{% if 'permissions' in bind %}permissions="{{ bind.permissions }}"{% endif %} {% endif %}
{% if 'replace' in bind %}replace="{{ bind.replace | ternary('yes', 'no') }}"{% endif %} {% if 'defer' in bind %}
{% if 'type' in bind %}type="{{ bind.type }}"{% endif %} defer="{{ bind.defer }}"
{% if 'ssl' in bind %}ssl="{{ bind.ssl }}"{% endif %}> {% endif %}
{% if 'free' in bind %}
free="{{ bind.free | ternary('yes', 'no') }}"
{% endif %}
{% if 'path' in bind %}
path="{{ path.cafile }}"
{% endif %}
{% if 'permissions' in bind %}
permissions="{{ bind.permissions }}"
{% endif %}
{% if 'replace' in bind %}
replace="{{ bind.replace | ternary('yes', 'no') }}"
{% endif %}
{% if 'type' in bind %}
type="{{ bind.type }}"
{% endif %}
{% if 'ssl' in bind %}
ssl="{{ bind.ssl }}"
{% endif %}
>
{% endfor %} {% endfor %}
@ -130,20 +149,38 @@
allowmask="{{ link.allowmask | join(' ') }}" allowmask="{{ link.allowmask | join(' ') }}"
sendpass="{{ link.sendpass }}" sendpass="{{ link.sendpass }}"
recvpass="{{ link.recvpass }}" recvpass="{{ link.recvpass }}"
{% if 'bind' in link %}bind="{{ link.bind }}"{% endif %} {% if 'bind' in link %}
{% if 'fingerprint' in link %}fingerprint="{{ link.fingerprint }}"{% endif %} bind="{{ link.bind }}"
{% if 'hidden' in link %}hidden="{{ link.hidden | ternary('yes', 'no') }}"{% endif %} {% endif %}
{% if 'port' in link %}port="{{ link.port }}"{% endif %} {% if 'fingerprint' in link %}
{% if 'ssl' in link %}ssl="{{ link.ssl }}"{% endif %} fingerprint="{{ link.fingerprint }}"
{% if 'statshidden' in link %}statshidden="{{ link.statshidden | ternary('yes', 'no') }}"{% endif %} {% endif %}
{% if 'timeout' in link %}timeout="{{ link.timeout }}"{% endif %}> {% if 'hidden' in link %}
hidden="{{ link.hidden | ternary('yes', 'no') }}"
{% endif %}
{% if 'port' in link %}
port="{{ link.port }}"
{% endif %}
{% 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 %} {% endif %}
{% endfor %} {% endfor %}
{% for uline in inspircd_ulines %} {% for uline in inspircd_ulines %}
<uline <uline
server="{{ uline.server }}" server="{{ uline.server }}"
{% if 'silent' in uline %}silent="{{ uline.silent | ternary('yes', 'no') }}"{% endif %}> {% if 'silent' in uline %}
silent="{{ uline.silent | ternary('yes', 'no') }}"
{% endif %}
>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -160,20 +197,38 @@
{% for name, cls in inspircd_oper_classes.items() %} {% for name, cls in inspircd_oper_classes.items() %}
<class <class
name="{{ name }}" name="{{ name }}"
{% if 'commands' in cls %}commands="{{ cls.commands | join(' ') }}"{% endif %} {% if 'commands' in cls %}
{% if 'privs' in cls %}privs="{{ cls.privs | join(' ') }}"{% endif %} commands="{{ cls.commands | join(' ') }}"
{% if 'chanmodes' in cls %}chanmodes="{{ cls.chanmodes }}"{% endif %} {% endif %}
{% if 'usermodes' in cls %}usermodes="{{ cls.usermodes }}"{% endif %} {% if 'privs' in cls %}
{% if 'snomasks' in cls %}snomasks="{{ cls.snomasks }}"{% endif %}> privs="{{ cls.privs | join(' ') }}"
{% endif %}
{% if 'chanmodes' in cls %}
chanmodes="{{ cls.chanmodes }}"
{% endif %}
{% if 'usermodes' in cls %}
usermodes="{{ cls.usermodes }}"
{% endif %}
{% if 'snomasks' in cls %}
snomasks="{{ cls.snomasks }}"
{% endif %}
>
{% endfor %} {% endfor %}
{% for name, type in inspircd_oper_types.items() %} {% for name, type in inspircd_oper_types.items() %}
<type <type
name="{{ name }}" name="{{ name }}"
{% if 'class' in type %}class="{{ cls.class }}"{% endif %} {% if 'class' in type %}
{% if 'classes' in type %}classes="{{ type.classes | join(' ') }}"{% endif %} class="{{ cls.class }}"
{% if 'vhost' in type %}vhost="{{ type.vhost }}"{% endif %}> {% endif %}
{% if 'classes' in type %}
classes="{{ type.classes | join(' ') }}"
{% endif %}
{% if 'vhost' in type %}
vhost="{{ type.vhost }}"
{% endif %}
>
{% endfor %} {% endfor %}
@ -183,9 +238,16 @@
host="{{ oper.host }}" host="{{ oper.host }}"
password="{{ oper.password }}" password="{{ oper.password }}"
type="{{ oper.type }}" type="{{ oper.type }}"
{% if 'class' in oper %}class="{{ oper.class }}"{% endif %} {% if 'class' in oper %}
{% if 'hash' in oper %}hash="{{ oper.hash }}"{% endif %} class="{{ oper.class }}"
{% if 'vhost' in oper %}vhost="{{ oper.vhost }}"{% endif %}> {% endif %}
{% if 'hash' in oper %}
hash="{{ oper.hash }}"
{% endif %}
{% if 'vhost' in oper %}
vhost="{{ oper.vhost }}"
{% endif %}
>
{% endfor %} {% endfor %}