diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-10-17 09:24:27 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-10-17 09:24:27 +0000 |
commit | cb5269404c50def3f5df21cb7f3e6fe778cb4f21 (patch) | |
tree | 3d7874abc20bd5f88d8124159966525f8447e9c3 /src/gui/curses | |
parent | 76c4d4d427d0541d9d09e9c90817efb6914311e3 (diff) | |
download | weechat-cb5269404c50def3f5df21cb7f3e6fe778cb4f21.zip |
Fixed display bug with channel name and privates when kicked
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-display.c | 7 |
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) { |