diff --git a/Events/MessageEvent.cs b/Events/MessageEvent.cs index 609d58b..2a50ade 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;