mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 16:53:14 +02:00
Added away info on status bar for server buffer when look_one_server_buffer is ON (new commit after savannah crash)
This commit is contained in:
@@ -110,8 +110,18 @@ gui_status_draw (t_gui_buffer *buffer, int erase)
|
||||
gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_status,
|
||||
COLOR_WIN_STATUS_CHANNEL);
|
||||
if (SERVER(ptr_win->buffer)->is_connected)
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s] ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
{
|
||||
if ((ptr_win->buffer->all_servers) && (SERVER(ptr_win->buffer)->is_away))
|
||||
{
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, _("(away)"));
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "] ");
|
||||
}
|
||||
else
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s] ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
}
|
||||
else
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "(%s) ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
|
||||
@@ -110,8 +110,18 @@ gui_status_draw (t_gui_buffer *buffer, int erase)
|
||||
gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_status,
|
||||
COLOR_WIN_STATUS_CHANNEL);
|
||||
if (SERVER(ptr_win->buffer)->is_connected)
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s] ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
{
|
||||
if ((ptr_win->buffer->all_servers) && (SERVER(ptr_win->buffer)->is_away))
|
||||
{
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, _("(away)"));
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "] ");
|
||||
}
|
||||
else
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "[%s] ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
}
|
||||
else
|
||||
wprintw (GUI_CURSES(ptr_win)->win_status, "(%s) ",
|
||||
SERVER(ptr_win->buffer)->name);
|
||||
|
||||
Reference in New Issue
Block a user