1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

Forgot to re-add custom functions after refactor

This commit is contained in:
Ash Keel 2022-01-12 23:21:00 +01:00
parent dd15e65251
commit 3ce419ad9c
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -484,7 +484,7 @@ func (m *BotAlertsModule) compileTemplates() {
}
func (m *BotAlertsModule) addTemplate(templateList map[int]*template.Template, id int, msg string) {
tpl, err := template.New("").Funcs(sprig.TxtFuncMap()).Parse(msg)
tpl, err := template.New("").Funcs(m.bot.customFunctions).Funcs(sprig.TxtFuncMap()).Parse(msg)
if err != nil {
m.bot.logger.WithError(err).Error("error compiling template")
return