diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-01-20 15:04:52 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-01-20 15:04:52 +0100 |
commit | 85ee15d4e209720cd1def8bc9f58ccdc8c86514c (patch) | |
tree | 5d497eec8eefe03deada3f882bddebf43669fa8d /src/plugins | |
parent | ada29940621834134343ee98fcfd26d473dbecbc (diff) | |
download | weechat-85ee15d4e209720cd1def8bc9f58ccdc8c86514c.zip |
irc: fix encoding of italic attribute when colors are removed
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-color.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c index 9a38bf52b..240c7a58c 100644 --- a/src/plugins/irc/irc-color.c +++ b/src/plugins/irc/irc-color.c @@ -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; |