1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

irc: fix encoding of italic attribute when colors are removed

This commit is contained in:
Sébastien Helleu
2019-01-20 15:04:52 +01:00
parent ada2994062
commit 85ee15d4e2
2 changed files with 6 additions and 0 deletions
+5
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;