From 5404eb06fe5af40a0fea2af1eaa0390bc1fe0e9b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 12 Aug 2021 00:46:14 +0200 Subject: [PATCH] Fix: Apply preventCooldown before returning Signed-off-by: Knut Ahlers --- actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions.go b/actions.go index d4c8110..45e1bee 100644 --- a/actions.go +++ b/actions.go @@ -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