Skip to content

Commit

Permalink
Apply line limit to forwarded messages
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Jan 25, 2025
1 parent 4c44be4 commit ac9034e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Events/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe
}

// line limit
var lineCount = CountNewlines(message.Content);
var lineCount = CountNewlines(msgContentWithEmbedData);

if (!Program.cfgjson.LineLimitExcludedChannels.Contains(channel.Id)
&& (channel.ParentId is null || !Program.cfgjson.LineLimitExcludedChannels.Contains((ulong)channel.ParentId))
Expand Down

0 comments on commit ac9034e

Please sign in to comment.