3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

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 62685c6f02
commit 94f8362f43

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
}
}
});