matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
462 stars 151 forks source link

`lineLimit` is not honored for messages whose lines are split #1603

Open progval opened 2 years ago

progval commented 2 years ago

Describe the bug Messages over the lineLimit are expected to be pastebined, but lines are counted before splitting long lines into multiple messages

To Reproduce Steps to reproduce the behavior:

  1. Send a message with 3 lines, one of which is over 500 bytes
  2. This sends 4 lines to IRC, even if lineLimit is set to 3

Expected behavior It should be pastebined

Screenshots For example in a Libera channel: screenshot-2022-09-06_22-28-37_cropped

while it looks like this from Element: screenshot-2022-09-06_22-40-26