Break actions execution when one action fails

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-10 19:45:41 +02:00
parent 7f641ebe1e
commit 3e5d3d0532
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -66,6 +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
}
preventCooldown = preventCooldown || apc
}