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

api: do not check hotlist add conditions when adding buffer in hotlist with function buffer_set

This commit is contained in:
Sébastien Helleu
2022-12-25 20:35:10 +01:00
parent a9094fd2fa
commit 2ad6f2f3d5
10 changed files with 48 additions and 15 deletions
+5 -1
View File
@@ -3293,7 +3293,11 @@ COMMAND_CALLBACK(hotlist)
if (priority < 0)
COMMAND_ERROR;
}
gui_hotlist_add (buffer, priority, NULL, 0);
gui_hotlist_add (
buffer,
priority,
NULL, /* creation_time */
0); /* check_conditions */
return WEECHAT_RC_OK;
}
+5 -4
View File
@@ -767,10 +767,11 @@ upgrade_weechat_read_hotlist (struct t_infolist *infolist)
if (buf)
{
memcpy (&creation_time, buf, size);
new_hotlist = gui_hotlist_add (ptr_buffer,
infolist_integer (infolist, "priority"),
&creation_time,
1);
new_hotlist = gui_hotlist_add (
ptr_buffer,
infolist_integer (infolist, "priority"),
&creation_time,
1); /* check_conditions */
if (new_hotlist)
{
for (i = 0; i < GUI_HOTLIST_NUM_PRIORITIES; i++)