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

v2.8-utf8proc
Sébastien Helleu 2019-01-20 15:07:21 +01:00
parent 85ee15d4e2
commit fec7d38e3d
2 changed files with 2 additions and 1 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: return IRC color code instead of WeeChat color code when decoding a too short ANSI color sequence
* 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

@ -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;