summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-25 20:35:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-25 20:35:10 +0100
commit2ad6f2f3d5fbc8bcfeb71a7bce0025d9e47a6dd9 (patch)
tree14452dda3a3642450cd9ed2b4479f36ed808cd90 /src/core
parenta9094fd2fa7d0848fd07d3f564806e93388de173 (diff)
downloadweechat-2ad6f2f3d5fbc8bcfeb71a7bce0025d9e47a6dd9.zip
api: do not check hotlist add conditions when adding buffer in hotlist with function buffer_set
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c6
-rw-r--r--src/core/wee-upgrade.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index e88e51587..2657ee291 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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;
}
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 187e39340..3846c9eda 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -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++)