mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[linkprotect] Fix: Apply stop_on_no_action
when no links present
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e38b6a6f6d
commit
a65d2a8fca
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ func (a actor) Execute(c *irc.Client, m *irc.Message, r *plugins.Rule, eventData
|
|||
if len(links) == 0 {
|
||||
// If there are no links there is nothing to protect and there
|
||||
// are also no clips as they are parsed from the links
|
||||
if attrs.MustBool("stop_on_no_action", ptrBoolFalse) {
|
||||
return false, plugins.ErrStopRuleExecution
|
||||
}
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue