From 76c4d4d427d0541d9d09e9c90817efb6914311e3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 17 Oct 2004 09:13:54 +0000 Subject: Auto-rejoin channels when kicked (new config option: server_autorejoin on/off) --- src/gui/curses/gui-display.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui') 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 */ -- cgit v1.2.3