diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-10-17 09:13:54 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-10-17 09:13:54 +0000 |
commit | 76c4d4d427d0541d9d09e9c90817efb6914311e3 (patch) | |
tree | e425a7dbf51dfaae35bfc22f17f0a926d4907e1c /src/gui | |
parent | 34c6051ffcd5775a89f6974989f43e26a582ff31 (diff) | |
download | weechat-76c4d4d427d0541d9d09e9c90817efb6914311e3.zip |
Auto-rejoin channels when kicked (new config option: server_autorejoin on/off)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-display.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index 4c969e625..b41d9f257 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -745,7 +745,7 @@ gui_draw_buffer_nick (t_gui_buffer *buffer, int erase) } } - if (CHANNEL(buffer) && CHANNEL(buffer)->nicks) + if (gui_buffer_has_nicklist (buffer)) { max_length = nick_get_max_length (CHANNEL(buffer)); if ((buffer == gui_current_window->buffer) && @@ -956,8 +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); - wprintw (ptr_win->win_status, "%s", - CHANNEL(ptr_win->buffer)->name); + if (CHANNEL(ptr_win->buffer)->nicks) + wprintw (ptr_win->win_status, "%s", + CHANNEL(ptr_win->buffer)->name); + else + wprintw (ptr_win->win_status, "(%s)", + CHANNEL(ptr_win->buffer)->name); if (ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer) { /* display channel modes */ |