[core] Fix: Event data was not available in rule templates

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-12-25 00:47:02 +01:00
parent f7d1f09b5c
commit a9637d03a8
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -239,7 +239,7 @@ func (r *Rule) allowExecuteDisableOnTemplate(logger *log.Entry, m *irc.Message,
return true return true
} }
res, err := r.msgFormatter(*r.DisableOnTemplate, m, r, nil) res, err := r.msgFormatter(*r.DisableOnTemplate, m, r, evtData)
if err != nil { if err != nil {
logger.WithError(err).Error("Unable to check DisableOnTemplate field") logger.WithError(err).Error("Unable to check DisableOnTemplate field")
// Caused an error, forbid execution // Caused an error, forbid execution