1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-27 16:17:03 +00:00

config: Set defaults for suffix_separators and drop_characters

This patch sets common and practical defaults for the suffix_separators ("+")
and drop_character options (".").
This commit is contained in:
Alberto Bertogli
2016-10-03 01:40:56 +01:00
parent 55b03c8cf0
commit 498bb29585
2 changed files with 12 additions and 2 deletions

View File

@@ -62,6 +62,14 @@ func Load(path string) (*Config, error) {
c.DataDir = "/var/lib/chasquid"
}
if c.SuffixSeparators == "" {
c.SuffixSeparators = "+"
}
if c.DropCharacters == "" {
c.DropCharacters = "."
}
return c, nil
}