summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-29 18:37:46 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-10-29 18:37:46 +0200
commit488de9895bb3da0ed22c6704084fe629c29a31a0 (patch)
treed1041e7357f8bf0f781e6953a39993aecf4d0b6d /src/gui
parent908d9ca602afc70e55971584c275b8d3c83f70f9 (diff)
downloadweechat-488de9895bb3da0ed22c6704084fe629c29a31a0.zip
Fix display of nick in nicklist when groups are displayed and nick has "visible" to 0
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar-item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index 407b3c502..e323e73c8 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -1211,7 +1211,8 @@ gui_bar_item_default_buffer_nicklist (void *data, struct t_gui_bar_item *item,
while (ptr_group || ptr_nick)
{
if ((ptr_nick && ptr_nick->visible)
- || (ptr_group && window->buffer->nicklist_display_groups
+ || (ptr_group && !ptr_nick
+ && window->buffer->nicklist_display_groups
&& ptr_group->visible))
{
if (ptr_nick)
@@ -1236,7 +1237,8 @@ gui_bar_item_default_buffer_nicklist (void *data, struct t_gui_bar_item *item,
while (ptr_group || ptr_nick)
{
if ((ptr_nick && ptr_nick->visible)
- || (ptr_group && window->buffer->nicklist_display_groups
+ || (ptr_group && !ptr_nick
+ && window->buffer->nicklist_display_groups
&& ptr_group->visible))
{
if (buf[0])