1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

irc: return IRC color code instead of WeeChat color code when decoding a too short ANSI color sequence

This commit is contained in:
Sébastien Helleu
2019-01-20 15:07:21 +01:00
parent 85ee15d4e2
commit fec7d38e3d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ irc_color_decode_ansi_cb (void *data, const char *text)
/* sequence "\33[m" resets color */
if (length < 4)
return strdup (weechat_color ("reset"));
return strdup (IRC_COLOR_RESET_STR);
text2 = NULL;
items = NULL;