murmur: multiline welcome text and channels' config as a variable

This commit is contained in:
HgO
2020-12-26 10:48:14 +01:00
parent 26fa2cb9ad
commit bc0cb0139f
3 changed files with 67 additions and 21 deletions

View File

@@ -140,7 +140,11 @@ pidfile={{ murmur_pid_file | to_json }}
; Welcome message sent to clients when they connect.
; If the welcome message is set to an empty string,
; no welcome message will be sent to clients.
{% if murmur_welcome_text is string %}
welcometext={{ murmur_welcome_text | to_json }}
{% else %}
welcometext = {{ murmur_welcome_text | join('<br />') | to_json }};
{% endif %}
; Port to bind TCP and UDP sockets to.
port={{ murmur_port }}