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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user