mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix accidental early return in match_invites automod trigger
This commit is contained in:
parent
9480e82056
commit
bc5455bf9f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue