Skip to content

Commit 4a421cc

Browse files
committed
Merge branch 'main' into floatingmilkshake/dsp-command-migration
2 parents db7b569 + 13a2a17 commit 4a421cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Events/MessageEvent.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe
419419

420420
if ((await GetPermLevelAsync(member)) < (ServerPermLevel)Program.cfgjson.InviteTierRequirement && disallowedInviteCodes.Contains(code))
421421
{
422-
//match = await InviteCheck(invite, message, client);
423422
if (!match)
424423
{
425424
string reason = "Sent an unapproved invite";
426425
await DeleteAndWarnAsync(message, reason, client, wasAutoModBlock);
426+
match = true;
427427
}
428428
break;
429429
}
@@ -494,7 +494,6 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe
494494

495495
}
496496

497-
498497
if (match)
499498
return;
500499

0 commit comments

Comments
 (0)