ergochat / irc-go

Libraries to help with IRC development in Go.
ISC License
40 stars 6 forks source link

ircmsg: UTF8-aware truncation during parsing #94

Closed slingamn closed 1 year ago

slingamn commented 1 year ago

A message that exceeds the length limit is a protocol violation, so handling is implementation-defined and it's not really a correctness issue for us to truncate it additionally.

Also move TruncateUTF8Safe into ircmsg (providing an alias in ircutils for API compatibility).