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

Fix display problem with color for groups in nicklist

This commit is contained in:
Sebastien Helleu
2008-12-04 16:51:58 +01:00
parent c6f65e8727
commit 866698d42d
2 changed files with 17 additions and 5 deletions
+12
View File
@@ -1223,6 +1223,18 @@ gui_bar_item_default_buffer_nicklist (void *data, struct t_gui_bar_item *item,
{
strcat (buf, " ");
}
if (strchr (ptr_group->color, '.'))
{
config_file_search_with_string (ptr_group->color,
NULL, NULL, &ptr_option,
NULL);
if (ptr_option)
strcat (buf, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(ptr_option))));
}
else
{
strcat (buf, gui_color_get_custom (ptr_group->color));
}
strcat (buf, gui_nicklist_get_group_start (ptr_group->name));
}
}
+5 -5
View File
@@ -116,15 +116,15 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
weechat_buffer_set (new_buffer, "nicklist", "1");
weechat_buffer_set (new_buffer, "nicklist_display_groups", "0");
weechat_nicklist_add_group (new_buffer, NULL, IRC_NICK_GROUP_OP,
"nicklist_group", 1);
"weechat.color.nicklist_group", 1);
weechat_nicklist_add_group (new_buffer, NULL, IRC_NICK_GROUP_HALFOP,
"nicklist_group", 1);
"weechat.color.nicklist_group", 1);
weechat_nicklist_add_group (new_buffer, NULL, IRC_NICK_GROUP_VOICE,
"nicklist_group", 1);
"weechat.color.nicklist_group", 1);
weechat_nicklist_add_group (new_buffer, NULL, IRC_NICK_GROUP_CHANUSER,
"nicklist_group", 1);
"weechat.color.nicklist_group", 1);
weechat_nicklist_add_group (new_buffer, NULL, IRC_NICK_GROUP_NORMAL,
"nicklist_group", 1);
"weechat.color.nicklist_group", 1);
}
/* set highlights settings on channel buffer */