Fix anope config file syntax
This commit is contained in:
parent
c38bdcdbd4
commit
2635f99665
1 changed files with 87 additions and 29 deletions
|
@ -19,8 +19,12 @@ serverinfo
|
|||
{
|
||||
name = "{{ anope_serverinfo_name }}"
|
||||
description = "{{ anope_serverinfo_description }}"
|
||||
{% if anope_serverinfo_localhost is defined %}localhost = "{{ anope_serverinfo_localhost }}"{% endif %}
|
||||
{% if anope_serverinfo_id is defined %}id = "{{ anope_serverinfo_id }}"{% endif %}
|
||||
{% if anope_serverinfo_localhost is defined %}
|
||||
localhost = "{{ anope_serverinfo_localhost }}"
|
||||
{% endif %}
|
||||
{% if anope_serverinfo_id is defined %}
|
||||
id = "{{ anope_serverinfo_id }}"
|
||||
{% endif %}
|
||||
pid = "{{ anope_serverinfo_pid }}"
|
||||
motd = "{{ anope_serverinfo_motd }}"
|
||||
}
|
||||
|
@ -40,7 +44,9 @@ networkinfo
|
|||
hostlen = {{ anope_networkinfo_hostlen }}
|
||||
chanlen = {{ anope_networkinfo_chanlen }}
|
||||
modelistsize = {{ anope_networkinfo_modelistsize }}
|
||||
{% if anope_networkinfo_nick_chars is defined %}nick_chars = "{{ anope_networkinfo_nick_chars }}"{% endif %}
|
||||
{% if anope_networkinfo_nick_chars is defined %}
|
||||
nick_chars = "{{ anope_networkinfo_nick_chars }}"
|
||||
{% endif %}
|
||||
vhost_chars = "{{ anope_networkinfo_vhost_chars }}"
|
||||
allow_undotted_vhosts = {{ anope_networkinfo_allow_undotted_vhosts | ternary('yes', 'no') }}
|
||||
disallow_start_or_end = "{{ anope_networkinfo_disallow_start_or_end }}"
|
||||
|
@ -48,8 +54,12 @@ networkinfo
|
|||
|
||||
options
|
||||
{
|
||||
{% if anope_options_user is defined %}user = "{{ anope_options_user }}"{% endif %}
|
||||
{% if anope_options_group is defined %}group = "{{ anope_options_group }}"{% endif %}
|
||||
{% if anope_options_user is defined %}
|
||||
user = "{{ anope_options_user }}"
|
||||
{% endif %}
|
||||
{% if anope_options_group is defined %}
|
||||
group = "{{ anope_options_group }}"
|
||||
{% endif %}
|
||||
casemap = "{{ anope_options_casemap }}"
|
||||
seed = {{ anope_options_seed }}
|
||||
strictpasswords = {{ anope_options_strictpasswords | ternary('yes', 'no' ) }}
|
||||
|
@ -60,14 +70,24 @@ options
|
|||
readtimeout = {{ anope_options_readtimeout }}
|
||||
warningtimeout = {{ anope_options_warningtimeout }}
|
||||
timeoutcheck = {{ anope_options_timeoutcheck }}
|
||||
{% if anope_options_useprivmsg is defined %}useprivmsg = {{ anope_options_useprivmsg | ternary('yes', 'no') }}{% endif %}
|
||||
{% if anope_options_usestrictprivmsg is defined %}usestrictprivmsg = {{ anope_options_usestrictprivmsg | ternary('yes', 'no') }}{% endif %}
|
||||
{% if anope_options_hidestatso is defined %}hidestatso = {{ anope_options_hidestatso | ternary('yes', 'no') }}{% endif %}
|
||||
{% if anope_options_ulineservers is defined %}ulineservers = "{{ anope_options_ulineservers | join(' ') }}"{% endif %}
|
||||
{% if anope_options_useprivmsg is defined %}
|
||||
useprivmsg = {{ anope_options_useprivmsg | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
{% if anope_options_usestrictprivmsg is defined %}
|
||||
usestrictprivmsg = {{ anope_options_usestrictprivmsg | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
{% if anope_options_hidestatso is defined %}
|
||||
hidestatso = {{ anope_options_hidestatso | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
{% if anope_options_ulineservers is defined %}
|
||||
ulineservers = "{{ anope_options_ulineservers | join(' ') }}"
|
||||
{% endif %}
|
||||
retrywait = {{ anope_options_retrywait }}
|
||||
hideprivilegedcommands = {{ anope_options_hideprivilegedcommands | ternary('yes', 'no') }}
|
||||
hideregisteredcommands = {{ anope_options_hideregisteredcommands | ternary('yes', 'no') }}
|
||||
{% if anope_options_regexengine is defined %}regexengine = "regex/pcre"{% endif %}
|
||||
{% if anope_options_regexengine is defined %}
|
||||
regexengine = "regex/pcre"
|
||||
{% endif %}
|
||||
languages = "{{ anope_options_languages | join(' ') }}"
|
||||
anope_options_defaultlanguage = "{{ anope_options_defaultlanguage }}"
|
||||
}
|
||||
|
@ -76,18 +96,42 @@ options
|
|||
log
|
||||
{
|
||||
target = "{{ log.targets | join(' ') }}"
|
||||
{% if 'source' in log %}source = "{{ log.source }}"{% endif %}
|
||||
{% if 'bot' in log %}bot = "{{ log.bot }}"{% endif %}
|
||||
{% if 'logage' in log %}logage = {{ log.logage }}{% endif %}
|
||||
{% if 'admin' in log %}admin = "{{ log.admin | join(' ') }}"{% endif %}
|
||||
{% if 'override' in log %}override = "{{ log.override | join(' ') }}"{% endif %}
|
||||
{% if 'commands' in log %}commands = "{{ log.commands | join(' ') }}"{% endif %}
|
||||
{% if 'servers' in log %}servers = "{{ log.servers | join(' ') }}"{% endif %}
|
||||
{% if 'channels' in log %}channels = "{{ log.channels | join(' ') }}"{% endif %}
|
||||
{% if 'users' in log %}users = "{{ log.users | join(' ') }}"{% endif %}
|
||||
{% if 'other' in log %}other = "{{ log.other | join(' ') }}"{% endif %}
|
||||
{% if 'rawio' in log %}rawio = {{ log.rawio | ternary('yes', 'no') }}{% endif %}
|
||||
{% if 'debug' in log %}debug = {{ log.debug | ternary('yes', 'no') }}{% endif %}
|
||||
{% if 'source' in log %}
|
||||
source = "{{ log.source }}"
|
||||
{% endif %}
|
||||
{% if 'bot' in log %}
|
||||
bot = "{{ log.bot }}"
|
||||
{% endif %}
|
||||
{% if 'logage' in log %}
|
||||
logage = {{ log.logage }}
|
||||
{% endif %}
|
||||
{% if 'admin' in log %}
|
||||
admin = "{{ log.admin | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'override' in log %}
|
||||
override = "{{ log.override | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'commands' in log %}
|
||||
commands = "{{ log.commands | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'servers' in log %}
|
||||
servers = "{{ log.servers | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'channels' in log %}
|
||||
channels = "{{ log.channels | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'users' in log %}
|
||||
users = "{{ log.users | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'other' in log %}
|
||||
other = "{{ log.other | join(' ') }}"
|
||||
{% endif %}
|
||||
{% if 'rawio' in log %}
|
||||
rawio = {{ log.rawio | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
{% if 'debug' in log %}
|
||||
debug = {{ log.debug | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% endfor %}
|
||||
|
@ -98,8 +142,12 @@ opertype
|
|||
name = "{{ name }}"
|
||||
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 %}
|
||||
{% if 'inherits' in opertype %}
|
||||
inherits = "{{ opertype.inherits | join(', ') }}"
|
||||
{% endif %}
|
||||
{% if 'modes' in opertype %}
|
||||
modes = "{{ opertype.modes }}"
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
|
@ -108,11 +156,21 @@ oper
|
|||
{
|
||||
name = "{{ name }}"
|
||||
type = "{{ op.type }}"
|
||||
{% if 'require_oper' in op%}require_oper = {{ op.require_oper | ternary('yes', 'no') }}{% endif %}
|
||||
{% if 'password' in op%}password = "{{ op.password }}"{% endif %}
|
||||
{% if 'certfp' in op%}certfp = "{{ op.certfp }}"{% endif %}
|
||||
{% if 'host' in op%}host = "{{ op.host }}"{% endif %}
|
||||
{% if 'vhost' in op%}vhost = "{{ op.vhost }}"{% endif %}
|
||||
{% if 'require_oper' in op%}
|
||||
require_oper = {{ op.require_oper | ternary('yes', 'no') }}
|
||||
{% endif %}
|
||||
{% if 'password' in op%}
|
||||
password = "{{ op.password }}"
|
||||
{% endif %}
|
||||
{% if 'certfp' in op %}
|
||||
certfp = "{{ op.certfp }}"
|
||||
{% endif %}
|
||||
{% if 'host' in op %}
|
||||
host = "{{ op.host }}"
|
||||
{% endif %}
|
||||
{% if 'vhost' in op %}
|
||||
vhost = "{{ op.vhost }}"
|
||||
{% endif %}
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue