diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-15 13:54:53 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-15 13:54:53 +0200 |
commit | ac7c27949b8fb52fa2c7cb06fdf0d176607419b0 (patch) | |
tree | 656f2a19f607e048ddeba9b65d4b444657048abf /src/plugins/irc | |
parent | 0bbddad6a67c3349e5b3331aa863d031ba8f7bd3 (diff) | |
download | weechat-ac7c27949b8fb52fa2c7cb06fdf0d176607419b0.zip |
core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-color.c | 4 |
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: |