mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
Fix: Apply preventCooldown before returning
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2d4efb4832
commit
5404eb06fe
1 changed files with 1 additions and 1 deletions
|
@ -60,10 +60,10 @@ func triggerActions(c *irc.Client, m *irc.Message, rule *Rule, ra *RuleAction) (
|
|||
}
|
||||
|
||||
apc, err := a.Execute(c, m, rule)
|
||||
preventCooldown = preventCooldown || apc
|
||||
if err != nil {
|
||||
return preventCooldown, errors.Wrap(err, "execute action")
|
||||
}
|
||||
preventCooldown = preventCooldown || apc
|
||||
}
|
||||
|
||||
return preventCooldown, nil
|
||||
|
|
Loading…
Reference in a new issue