From 2261aee955550bd2386efc964251f26cd98aa3a1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 13 Oct 2021 14:46:54 +0200 Subject: [PATCH] [respond] fix broken condition for fallback message Signed-off-by: Knut Ahlers --- internal/actors/respond/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/actors/respond/actor.go b/internal/actors/respond/actor.go index d019c3f..a264a45 100644 --- a/internal/actors/respond/actor.go +++ b/internal/actors/respond/actor.go @@ -76,7 +76,7 @@ type actor struct{} func (a actor) Execute(c *irc.Client, m *irc.Message, r *plugins.Rule, eventData plugins.FieldCollection, attrs plugins.FieldCollection) (preventCooldown bool, err error) { msg, err := formatMessage(attrs.MustString("message", nil), m, r, eventData) if err != nil { - if attrs.CanString("fallback") { + if !attrs.CanString("fallback") { return false, errors.Wrap(err, "preparing response") } if msg, err = formatMessage(attrs.MustString("fallback", nil), m, r, eventData); err != nil {