1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550)

This commit is contained in:
Sebastien Helleu
2011-10-15 13:54:53 +02:00
parent 0bbddad6a6
commit ac7c27949b
15 changed files with 190 additions and 50 deletions
+2 -2
View File
@@ -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: