summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-10-17 09:24:27 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-10-17 09:24:27 +0000
commitcb5269404c50def3f5df21cb7f3e6fe778cb4f21 (patch)
tree3d7874abc20bd5f88d8124159966525f8447e9c3 /src/gui
parent76c4d4d427d0541d9d09e9c90817efb6914311e3 (diff)
downloadweechat-cb5269404c50def3f5df21cb7f3e6fe778cb4f21.zip
Fixed display bug with channel name and privates when kicked
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index b41d9f257..cea05142f 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -956,11 +956,12 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase)
wprintw (ptr_win->win_status, ":");
gui_window_set_color (ptr_win->win_status,
COLOR_WIN_STATUS);
- if (CHANNEL(ptr_win->buffer)->nicks)
- wprintw (ptr_win->win_status, "%s",
+ if ((!CHANNEL(ptr_win->buffer)->nicks)
+ && (CHANNEL(ptr_win->buffer)->type != CHAT_PRIVATE))
+ wprintw (ptr_win->win_status, "(%s)",
CHANNEL(ptr_win->buffer)->name);
else
- wprintw (ptr_win->win_status, "(%s)",
+ wprintw (ptr_win->win_status, "%s",
CHANNEL(ptr_win->buffer)->name);
if (ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer)
{