From ac7c27949b8fb52fa2c7cb06fdf0d176607419b0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 15 Oct 2011 13:54:53 +0200 Subject: core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550) --- src/plugins/irc/irc-color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/irc') diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c index a80de5735..1b9f26aee 100644 --- a/src/plugins/irc/irc-color.c +++ b/src/plugins/irc/irc-color.c @@ -176,14 +176,14 @@ irc_color_decode (const char *string, int keep_colors) } } snprintf (str_color, sizeof (str_color), - "%s%s%s", + "|%s%s%s", (fg >= 0) ? irc_color_to_weechat[fg] : "", (bg >= 0) ? "," : "", (bg >= 0) ? irc_color_to_weechat[bg] : ""); strcat ((char *)out, weechat_color(str_color)); } else - strcat ((char *)out, weechat_color("reset")); + strcat ((char *)out, weechat_color("resetcolor")); } break; default: -- cgit v1.2.3