mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
Break actions execution when one action fails
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7f641ebe1e
commit
3e5d3d0532
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ func handleMessage(c *irc.Client, m *irc.Message, event *string, eventData plugi
|
||||||
apc, err := triggerActions(c, m, r, a, eventData)
|
apc, err := triggerActions(c, m, r, a, eventData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Error("Unable to trigger action")
|
log.WithError(err).Error("Unable to trigger action")
|
||||||
|
return // Break execution when one action fails
|
||||||
}
|
}
|
||||||
preventCooldown = preventCooldown || apc
|
preventCooldown = preventCooldown || apc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue