Ed Kellett
a6f63a829e
Innovation by sed
2020-10-15 15:52:41 +01:00
Janik Kleinhoff
12b3a184bc
strip_unprintable: clarify type conversion
...
This type conversion is more easily shown to work as intended than the
conversion introduced in 9dcb9e169
.
2019-10-06 23:16:43 +01:00
Ed Kellett
9dcb9e1696
Fix strip_unprintable on high bit bytes
2019-10-06 23:14:28 +01:00
auscompgeek
bd96349c86
strip_colour: Strip '\x0F' (^O, formatting off)
...
Reported by ssbr on freenode:
chmode +c doesn't strip ^O, which turns off all previous formatting.
This can cause clients that internally use mIRC formatting to render messages weirdly,
e.g. highlighted messages in HexChat: <https://i.imgur.com/eDX8Aif.png >.
2014-04-17 13:12:11 +10:00
Jilles Tjoelker
57b1cd5f6b
strip_colour: Prefer IsDigit to isdigit.
...
Unlike isdigit, IsDigit can safely be applied to 'char's.
Arguments to isdigit needs a character cast to 'unsigned char' or EOF.
2012-03-15 00:58:56 +01:00
Jilles Tjoelker
aba43ba823
When stripping colour/control codes, also strip \004.
...
Some clients such as irssi interpret \004 as colour or other markup.
2012-03-15 00:17:40 +01:00
B.Greenham
87d38e8cf1
Add strip_unprintable, a function that strips all unprintable characters from a string.
2010-12-09 12:02:24 -05:00
William Pitcock
545f0a0f07
strip_colour(): strip ASCII 29 (mIRC 7 italics).
2010-06-19 16:53:56 -05:00
William Pitcock
ab4285181c
Remainder of irc_string.* is moved to new inline/stringops.h.
2008-04-20 01:03:11 -05:00