Don't apply multiple automod rules to the same message

This commit is contained in:
Dragory 2019-11-27 20:30:50 +02:00
parent cec2c74eaa
commit 682d8e9153

View file

@ -1311,6 +1311,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema> {
const matchResult = await this.matchRuleToMessage(rule, msg);
if (matchResult) {
await this.applyActionsOnMatch(rule, matchResult);
break; // Don't apply multiple rules to the same message
}
}
});