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.
This commit is contained in:
Sébastien Helleu 2020-09-02 19:22:56 +02:00
parent 579af1b265
commit 9ccf62979f
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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);