3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Fix accidental early return in match_invites automod trigger

This commit is contained in:
Dragory 2020-11-09 20:43:46 +02:00
parent 409fc68fc7
commit b681316471

View file

@ -51,7 +51,7 @@ export const MatchInvitesTrigger = automodTrigger<MatchResultType>()({
for await (const [type, str] of matchMultipleTextTypesOnMessage(pluginData, trigger, context.message)) {
const inviteCodes = getInviteCodesInString(str);
if (inviteCodes.length === 0) return null;
if (inviteCodes.length === 0) continue;
const uniqueInviteCodes = Array.from(new Set(inviteCodes));