summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-display.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-02-22 22:31:57 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-02-22 22:31:57 +0000
commit5238dba084e215b7dcb0e0ad9f1c782a00d42bdf (patch)
treee7c99aaa25ef065f9bd17563e33bd056d46e64e1 /src/gui/curses/gui-display.c
parent81e700ea43207517f03cfaea27b8db3779da3197 (diff)
downloadweechat-5238dba084e215b7dcb0e0ad9f1c782a00d42bdf.zip
Remove brackets after nick in status bar for private buffers
Diffstat (limited to 'src/gui/curses/gui-display.c')
-rw-r--r--src/gui/curses/gui-display.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index bb9c674c9..f424e9f75 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -1010,10 +1010,15 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase)
else
wprintw (ptr_win->win_status, "%s",
CHANNEL(ptr_win->buffer)->name);
- if (ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer)
+ if ((ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer)
+ && (CHANNEL(ptr_win->buffer)->type == CHAT_CHANNEL))
{
/* display channel modes */
+ gui_window_set_color (ptr_win->win_status,
+ COLOR_WIN_STATUS_DELIMITERS);
wprintw (ptr_win->win_status, "(");
+ gui_window_set_color (ptr_win->win_status,
+ COLOR_WIN_STATUS);
i = 0;
first_mode = 1;
while (CHANNEL(ptr_win->buffer)->modes[i])
@@ -1036,7 +1041,11 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase)
if (CHANNEL(ptr_win->buffer)->modes[CHANNEL_MODE_LIMIT] != ' ')
wprintw (ptr_win->win_status, ",%d",
CHANNEL(ptr_win->buffer)->limit);
+ gui_window_set_color (ptr_win->win_status,
+ COLOR_WIN_STATUS_DELIMITERS);
wprintw (ptr_win->win_status, ")");
+ gui_window_set_color (ptr_win->win_status,
+ COLOR_WIN_STATUS);
}
wprintw (ptr_win->win_status, " ");
}