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

script: add option script.scripts.download_enabled (closes #1548)

This commit is contained in:
Sébastien Helleu
2020-09-06 19:15:15 +02:00
parent 9ccf62979f
commit 3c987f3a1c
29 changed files with 417 additions and 95 deletions
+12 -3
View File
@@ -1478,7 +1478,7 @@ script_repo_file_update_process_cb (const void *pointer, void *data,
{
if (script_buffer)
script_buffer_refresh (1);
if (!script_action_run ())
if (!script_action_run_all ())
script_buffer_refresh (1);
}
else
@@ -1490,19 +1490,26 @@ script_repo_file_update_process_cb (const void *pointer, void *data,
/*
* Updates repository file and reads it.
*
* Returns:
* 0: error
* 1: OK
*/
void
int
script_repo_file_update (int quiet)
{
char *filename, *url;
struct t_hashtable *options;
if (!script_download_enabled ())
return 0;
script_repo_remove_all ();
filename = script_config_get_xml_filename ();
if (!filename)
return;
return 0;
options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
@@ -1534,6 +1541,8 @@ script_repo_file_update (int quiet)
}
free (filename);
return 1;
}
/*