mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-20 02:00:49 +00:00
Forgot to re-add custom functions after refactor
This commit is contained in:
parent
dd15e65251
commit
3ce419ad9c
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ func (m *BotAlertsModule) compileTemplates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *BotAlertsModule) addTemplate(templateList map[int]*template.Template, id int, msg string) {
|
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 {
|
if err != nil {
|
||||||
m.bot.logger.WithError(err).Error("error compiling template")
|
m.bot.logger.WithError(err).Error("error compiling template")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue