mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
Hotlist not changed when self away or nick change
This commit is contained in:
@@ -65,6 +65,7 @@ char *nicks_colors[COLOR_WIN_NICK_NUMBER] =
|
||||
|
||||
int color_attr[NUM_COLORS];
|
||||
|
||||
|
||||
/*
|
||||
* gui_assign_color: assign a color (read from config)
|
||||
*/
|
||||
@@ -2398,7 +2399,7 @@ gui_add_message (t_gui_buffer *buffer, int type, int color, char *message)
|
||||
pos[0] = '\n';
|
||||
if (buffer->num_displayed > 0)
|
||||
gui_draw_buffer_chat (buffer, 0);
|
||||
if (buffer->num_displayed == 0)
|
||||
if (gui_add_hotlist && (buffer->num_displayed == 0))
|
||||
{
|
||||
if (3 - buffer->last_line->line_with_message -
|
||||
buffer->last_line->line_with_highlight <=
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
int gui_init_ok = 0; /* = 1 if GUI is initialized */
|
||||
int gui_ok = 0; /* = 1 if GUI is ok */
|
||||
/* (0 when term size too small) */
|
||||
int gui_add_hotlist = 1; /* 0 is for temporarly disable */
|
||||
/* hotlist add for all buffers */
|
||||
|
||||
t_gui_window *gui_windows = NULL; /* pointer to first window */
|
||||
t_gui_window *last_gui_window = NULL; /* pointer to last window */
|
||||
|
||||
@@ -250,6 +250,7 @@ struct t_gui_window
|
||||
|
||||
extern int gui_init_ok;
|
||||
extern int gui_ok;
|
||||
extern int gui_add_hotlist;
|
||||
extern t_gui_window *gui_windows;
|
||||
extern t_gui_window *last_gui_window;
|
||||
extern t_gui_window *gui_current_window;
|
||||
|
||||
Reference in New Issue
Block a user