summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-02-22 19:33:44 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-02-22 19:33:44 +0100
commitb4ccd82a9dc982dcbdac13f3506f8db89f15a725 (patch)
treed666736836c9660ad34d0048ad7435e3c047ff23 /src
parent17ae0dc5929aef8f3f29b0aa0274b6e8800c79e0 (diff)
downloadweechat-b4ccd82a9dc982dcbdac13f3506f8db89f15a725.zip
Replace char "/" by ":" to specify background in nick colors
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config.c4
-rw-r--r--src/gui/gui-color.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index f71d90cba..b81fa8357 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -1889,8 +1889,10 @@ config_weechat_init_options ()
config_color_chat_nick_colors = config_file_new_option (
weechat_config_file, ptr_section,
"chat_nick_colors", "string",
+ /* TRANSLATORS: please do not translate "lightred:blue" */
N_("text color for nicks (comma separated list of colors, background "
- "is allowed with format: \"fg/bg\", for example: \"blue/red\")"),
+ "is allowed with format: \"fg:bg\", for example: "
+ "\"lightred:blue\")"),
NULL, 0, 0, "cyan,magenta,green,brown,lightblue,default,lightcyan,"
"lightmagenta,lightgreen,blue", NULL, 0,
NULL, NULL, &config_change_nick_colors, NULL, NULL, NULL);
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index 7e5aa4f56..66d3b4f33 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -264,7 +264,7 @@ gui_color_get_custom (const char *color_name)
pos_delim = strchr (ptr_color_name, ',');
if (!pos_delim)
- pos_delim = strchr (ptr_color_name, '/');
+ pos_delim = strchr (ptr_color_name, ':');
if (pos_delim)
{
if (pos_delim == ptr_color_name)