Commit graph

6 commits

Author SHA1 Message Date
Shivaram Lingamneni
3a457e3fa0 ircmsg: UTF8-aware truncation during parsing
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).
2023-02-16 09:46:57 -05:00
Shivaram Lingamneni
58477f84d8 refactor ParseNUH, move it to ircmsg, expose it in ircevent 2022-01-13 04:34:26 -05:00
Daniel Oaks
ef8b1e7a5b create ircutils.ParseNUH that follows real rules 2022-01-12 18:17:55 -05:00
Shivaram Lingamneni
97bbb1c210 ircutils: add SanitizeText 2021-04-23 11:30:37 -04:00
Shivaram Lingamneni
debcdc124d add UTF8-safe truncation utility function 2021-03-18 03:43:31 -04:00
Daniel Oaks
e25b1379c8 Add ircutils package 2016-11-28 16:27:27 +10:00