From 9ccf62979fd487ace77c6caa430b41f74c97248c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 2 Sep 2020 19:22:56 +0200 Subject: [PATCH] script: do not automatically download list of scripts on startup if the file is too old (closes #1548) The repository file is downloaded anyway if too old on any /script action. --- ChangeLog.adoc | 1 + src/plugins/script/script.c | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 15c8e1a50..6d372b7ab 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -32,6 +32,7 @@ Bug fixes:: * core: set "notify_level" to 3 if there is a highlight in the line (issue #1529) * core: do not add line with highlight and tag "notify_none" to hotlist (issue #1529) * irc: send all channels in a single JOIN command when reconnecting to the server (issue #1551) + * script: do not automatically download list of scripts on startup if the file is too old (issue #1548) * spell: properly skip WeeChat and IRC color codes when checking words in input (issue #1547) * trigger: fix recursive calls to triggers using regex (issue #1546) * trigger: add `${tg_tags} !!- ,notify_none,` in conditions of default trigger "beep" (issue #1529) diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c index ef0b96097..eab823421 100644 --- a/src/plugins/script/script.c +++ b/src/plugins/script/script.c @@ -362,12 +362,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) script_mouse_init (); if (script_repo_file_exists ()) - { - if (!script_repo_file_is_uptodate ()) - script_repo_file_update (0); - else - script_repo_file_read (0); - } + script_repo_file_read (0); if (script_buffer) script_buffer_refresh (1);