mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Don't apply multiple automod rules to the same message
This commit is contained in:
parent
cec2c74eaa
commit
682d8e9153
1 changed files with 1 additions and 0 deletions
|
@ -1311,6 +1311,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
const matchResult = await this.matchRuleToMessage(rule, msg);
|
const matchResult = await this.matchRuleToMessage(rule, msg);
|
||||||
if (matchResult) {
|
if (matchResult) {
|
||||||
await this.applyActionsOnMatch(rule, matchResult);
|
await this.applyActionsOnMatch(rule, matchResult);
|
||||||
|
break; // Don't apply multiple rules to the same message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue