aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2020-01-23 12:18:40 -0500
committerReto Brunner <reto@labrat.space>2020-01-24 12:11:03 +0100
commitaa967682bcdbeaa11b3e79d66b1d68b129dd4161 (patch)
tree8553853df7c7d6d1ed3dc494793abc1aacaf538b /config
parent6b0483dd92986b3a4dfdd60f4c2289c83f252d6b (diff)
downloadaerc-aa967682bcdbeaa11b3e79d66b1d68b129dd4161.tar.gz
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.
Diffstat (limited to 'config')
-rw-r--r--config/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/config.go b/config/config.go
index e5f73959..fe548ffa 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 {