brigand / jellobot

16 stars 13 forks source link

Improved message truncation #60

Closed brigand closed 3 years ago

brigand commented 3 years ago

Previously the message overflow handling was utf-16 code units, but IRC works with byte length. Also, it's best to not remove part of a "character", so this also changes from splitting by code unit to splitting by extended grapheme cluster.

A minor change that no one will ever notice.