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

Fix antiraid_level override criteria not working

This commit is contained in:
Dragory 2020-01-28 22:15:32 +02:00
parent 60af27c526
commit 462a604c8b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -293,7 +293,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
}
protected matchCustomOverrideCriteria(criteria: ICustomOverrides, matchParams: IMatchParams) {
return matchParams?.extra?.antiraid_level && matchParams.extra.antiraid_level === this.cachedAntiraidLevel;
return criteria?.antiraid_level && criteria.antiraid_level === this.cachedAntiraidLevel;
}
protected async onLoad() {