From c683673047742fc8ece9193b4b774ecf367c6472 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 7 Feb 2009 18:49:46 +0100 Subject: [PATCH] Fix bug in irc color decoding: reset color if color code is not followed by a color number --- src/plugins/irc/irc-color.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c index 91a60ac93..f1f06eeec 100644 --- a/src/plugins/irc/irc-color.c +++ b/src/plugins/irc/irc-color.c @@ -160,6 +160,8 @@ irc_color_decode (const char *string, int keep_colors) (bg >= 0) ? irc_color_to_weechat[bg] : ""); strcat ((char *)out, weechat_color(str_color)); } + else + strcat ((char *)out, weechat_color("reset")); } break; default: