Skip to content

Commit c95aab5

Browse files
committed
Merge branch 'main' into milkshake/pardon-warnings
2 parents 7978a9c + 762ba75 commit c95aab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Events/MessageEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe
279279
{
280280
#region message logging fill to db
281281
// If db support is enabled, and this message is not in an excluded channel, cache it
282-
if (message.Channel.GuildId == Program.cfgjson.ServerID
282+
if (!wasAutoModBlock && message.Channel.GuildId == Program.cfgjson.ServerID
283283
&& Program.cfgjson.EnablePersistentDb
284284
&& !Program.cfgjson.MessageLogExcludedChannels.Contains(message.ChannelId)
285285
&& (message.Channel.ParentId is null || !Program.cfgjson.MessageLogExcludedChannels.Contains((ulong)message.Channel.ParentId)))

0 commit comments

Comments
 (0)