Fix anope template errors

This commit is contained in:
s3lph 2020-12-17 02:31:09 +01:00
parent c0dfcce96d
commit c38bdcdbd4
2 changed files with 5 additions and 4 deletions
roles/anope
defaults
templates/etc/anope

View file

@ -123,6 +123,7 @@ anope_opertypes:
anope_opers: {}
anope_database_flatfile_filename: anope.db
anope_database_flatfile_keepbackups: 3
anope_database_flatfile_nobackupok: no
anope_database_flatfile_fork: no

View file

@ -96,10 +96,10 @@ log
opertype
{
name = "{{ name }}"
commands = "{{ log.commands | join(' ') }}"
privs = "{{ log.privs | join(' ') }}"
{% if 'inherits' in opertype %}inherits = "{{ log.inherits | join(', ') }}"{% endif %}
{% if 'modes' in opertype %}modes = "{{ log.modes }}"{% endif %}
commands = "{{ opertype.commands | join(' ') }}"
privs = "{{ opertype.privs | join(' ') }}"
{% if 'inherits' in opertype %}inherits = "{{ opertype.inherits | join(', ') }}"{% endif %}
{% if 'modes' in opertype %}modes = "{{ opertype.modes }}"{% endif %}
}
{% endfor %}