From aa967682bcdbeaa11b3e79d66b1d68b129dd4161 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Thu, 23 Jan 2020 12:18:40 -0500 Subject: Fix handling of multiple template-dirs Before, while the docs stated that template-dirs was a colon-separated list, a delimiter was not specified in the struct tag, so it was falling back to the default for the ini library (a comma). Also added a note to the docs to clarify that templates are configured in the [templates] section. --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/config.go b/config/config.go index e5f7395..fe548ff 100644 --- a/config/config.go +++ b/config/config.go @@ -106,9 +106,9 @@ type TriggersConfig struct { } type TemplateConfig struct { - TemplateDirs []string - QuotedReply string `ini:"quoted-reply"` - Forwards string `ini:"forwards"` + TemplateDirs []string `ini:"template-dirs", delim:":"` + QuotedReply string `ini:"quoted-reply"` + Forwards string `ini:"forwards"` } type AercConfig struct { -- cgit v1.2.3