From 682d8e91539baaa7d382f515e47e19c40737bc35 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 27 Nov 2019 20:30:50 +0200 Subject: [PATCH] Don't apply multiple automod rules to the same message --- backend/src/plugins/Automod.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/plugins/Automod.ts b/backend/src/plugins/Automod.ts index cddc2257..e8982687 100644 --- a/backend/src/plugins/Automod.ts +++ b/backend/src/plugins/Automod.ts @@ -1311,6 +1311,7 @@ export class AutomodPlugin extends ZeppelinPlugin { const matchResult = await this.matchRuleToMessage(rule, msg); if (matchResult) { await this.applyActionsOnMatch(rule, matchResult); + break; // Don't apply multiple rules to the same message } } });