mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[core] Fix: Event data was not available in rule templates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f7d1f09b5c
commit
a9637d03a8
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ func (r *Rule) allowExecuteDisableOnTemplate(logger *log.Entry, m *irc.Message,
|
|||
return true
|
||||
}
|
||||
|
||||
res, err := r.msgFormatter(*r.DisableOnTemplate, m, r, nil)
|
||||
res, err := r.msgFormatter(*r.DisableOnTemplate, m, r, evtData)
|
||||
if err != nil {
|
||||
logger.WithError(err).Error("Unable to check DisableOnTemplate field")
|
||||
// Caused an error, forbid execution
|
||||
|
|
Loading…
Reference in a new issue