summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-15 13:54:53 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-15 13:54:53 +0200
commitac7c27949b8fb52fa2c7cb06fdf0d176607419b0 (patch)
tree656f2a19f607e048ddeba9b65d4b444657048abf /src/plugins
parent0bbddad6a67c3349e5b3331aa863d031ba8f7bd3 (diff)
downloadweechat-ac7c27949b8fb52fa2c7cb06fdf0d176607419b0.zip
core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-color.c4
1 files changed, 2 insertions, 2 deletions
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: