From 13a2a171bcd938e1e682bce0f614ba9448583bfe Mon Sep 17 00:00:00 2001 From: Erisa A Date: Mon, 13 Jan 2025 04:52:21 +0000 Subject: [PATCH] fix disallowed invite cache logic error --- Events/MessageEvent.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Events/MessageEvent.cs b/Events/MessageEvent.cs index 609d58be..2a50ade3 100644 --- a/Events/MessageEvent.cs +++ b/Events/MessageEvent.cs @@ -419,11 +419,11 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe if ((await GetPermLevelAsync(member)) < (ServerPermLevel)Program.cfgjson.InviteTierRequirement && disallowedInviteCodes.Contains(code)) { - //match = await InviteCheck(invite, message, client); if (!match) { string reason = "Sent an unapproved invite"; await DeleteAndWarnAsync(message, reason, client, wasAutoModBlock); + match = true; } break; } @@ -494,7 +494,6 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe } - if (match) return;