mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
script: add option script.scripts.download_timeout
This commit is contained in:
@@ -648,9 +648,12 @@ script_action_install (int quiet)
|
||||
ptr_script_to_install->name_with_extension);
|
||||
}
|
||||
weechat_hashtable_set (options, "file_out", filename);
|
||||
weechat_hook_process_hashtable (url, options, 30000,
|
||||
&script_action_install_process_cb,
|
||||
(quiet) ? (void *)1 : (void *)0);
|
||||
weechat_hook_process_hashtable (
|
||||
url,
|
||||
options,
|
||||
weechat_config_integer (script_config_scripts_download_timeout) * 1000,
|
||||
&script_action_install_process_cb,
|
||||
(quiet) ? (void *)1 : (void *)0);
|
||||
free (url);
|
||||
}
|
||||
weechat_hashtable_free (options);
|
||||
@@ -1067,9 +1070,12 @@ script_action_show (const char *name, int quiet)
|
||||
if (url)
|
||||
{
|
||||
weechat_hashtable_set (options, "file_out", filename);
|
||||
weechat_hook_process_hashtable (url, options, 30000,
|
||||
&script_action_show_source_process_cb,
|
||||
NULL);
|
||||
weechat_hook_process_hashtable (
|
||||
url,
|
||||
options,
|
||||
weechat_config_integer (script_config_scripts_download_timeout) * 1000,
|
||||
&script_action_show_source_process_cb,
|
||||
NULL);
|
||||
free (url);
|
||||
}
|
||||
weechat_hashtable_free (options);
|
||||
|
||||
Reference in New Issue
Block a user