Skip to content

Commit

Permalink
Merge branch 'main' into floatingmilkshake/dsp-command-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Jan 13, 2025
2 parents db7b569 + 13a2a17 commit 4a421cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Events/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -494,7 +494,6 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe

}


if (match)
return;

Expand Down

0 comments on commit 4a421cc

Please sign in to comment.