irc: fix encoding of italic attribute when colors are removed

v2.8-utf8proc
Sébastien Helleu 2019-01-20 15:04:52 +01:00
parent ada2994062
commit 85ee15d4e2
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Bug fixes::
* core: fix forced highlight on messages sent to other buffers (issue #1277)
* buflist: add alternate key codes for kbd:[F1]/kbd:[F2] and kbd:[Alt+F1]/kbd:[Alt+F2] (compatibility with terminals)
* buflist: fix warning displayed when script buffers.pl is loaded (issue #1274)
* irc: fix encoding of italic attribute when colors are removed
* irc: fix parsing of "time" message tag on FreeBSD (issue #1289)
* relay: fix memory leak in connection of client

View File

@ -374,6 +374,11 @@ irc_color_encode (const char *string, int keep_colors)
out[out_pos++] = IRC_COLOR_REVERSE_CHAR;
ptr_string++;
break;
case 0x1D: /* ^] */
if (keep_colors)
out[out_pos++] = IRC_COLOR_ITALIC_CHAR;
ptr_string++;
break;
case 0x1F: /* ^_ */
if (keep_colors)
out[out_pos++] = IRC_COLOR_UNDERLINE_CHAR;