summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-01-20 15:07:21 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-01-20 15:07:21 +0100
commitfec7d38e3da8e1c6e1c2774f64fa064ac6dcf97c (patch)
treebd47011eaa18861922b4a99969efb8fef928d211 /src
parent85ee15d4e209720cd1def8bc9f58ccdc8c86514c (diff)
downloadweechat-fec7d38e3da8e1c6e1c2774f64fa064ac6dcf97c.zip
irc: return IRC color code instead of WeeChat color code when decoding a too short ANSI color sequence
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c
index 240c7a58c..dacfc4219 100644
--- a/src/plugins/irc/irc-color.c
+++ b/src/plugins/irc/irc-color.c
@@ -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;