Fix: Do not break all rules, just the current one

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-11 20:04:47 +02:00
parent 7c75e94ade
commit aa547d137f
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -66,7 +66,7 @@ func handleMessage(c *irc.Client, m *irc.Message, event *string, eventData plugi
apc, err := triggerActions(c, m, r, a, eventData)
if err != nil {
log.WithError(err).Error("Unable to trigger action")
return // Break execution when one action fails
break // Break execution when one action fails
}
preventCooldown = preventCooldown || apc
}