1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

Fixed hotlist display bug with server buffer when all servers are displayed on

same buffer (display was current server instead of server with activity)
This commit is contained in:
Sebastien Helleu
2006-01-08 19:26:51 +00:00
parent 05992a34f3
commit b3b1ab104b
12 changed files with 30 additions and 20 deletions
+2 -1
View File
@@ -76,7 +76,7 @@ hotlist_find_pos (t_weechat_hotlist *new_hotlist)
*/
void
hotlist_add (int priority, t_gui_buffer *buffer)
hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer)
{
t_weechat_hotlist *new_hotlist, *pos_hotlist;
@@ -104,6 +104,7 @@ hotlist_add (int priority, t_gui_buffer *buffer)
}
new_hotlist->priority = priority;
new_hotlist->server = server;
new_hotlist->buffer = buffer;
if (hotlist)
+2 -1
View File
@@ -34,6 +34,7 @@ struct t_weechat_hotlist
{
int priority; /* 0=crappy msg (join/part), 1=msg, */
/* 2=pv, 3=nick highlight */
t_irc_server *server; /* associated server */
t_gui_buffer *buffer; /* associated buffer */
t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
t_weechat_hotlist *next_hotlist; /* link to next hotlist */
@@ -42,7 +43,7 @@ struct t_weechat_hotlist
extern t_weechat_hotlist *hotlist;
extern t_gui_buffer *hotlist_initial_buffer;
extern void hotlist_add (int, t_gui_buffer *);
extern void hotlist_add (int, t_irc_server *, t_gui_buffer *);
extern void hotlist_free (t_weechat_hotlist *);
extern void hotlist_free_all ();
extern void hotlist_remove_buffer (t_gui_buffer *);