diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-09-08 11:35:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-09-16 12:58:57 +0200 |
commit | 24d2ba3338c8467a51ce28eccb05937603e3e6cc (patch) | |
tree | 0fa269a0b8e166ebb658358b13461fc1d80dd22c /src/plugins/script/script.c | |
parent | 63922ca03840caaa6deaf010d7627ad9542e19c5 (diff) | |
download | weechat-24d2ba3338c8467a51ce28eccb05937603e3e6cc.zip |
script: replace hook_process_hashtable by hook_url to download scripts and list of scripts (closes #1723)
Diffstat (limited to 'src/plugins/script/script.c')
-rw-r--r-- | src/plugins/script/script.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c index 67636e0f4..f04ccb248 100644 --- a/src/plugins/script/script.c +++ b/src/plugins/script/script.c @@ -131,32 +131,6 @@ script_download_enabled (int display_error) } /* - * Builds download URL (to use with hook_process or hook_process_hashtable). - * - * Note: result must be freed after use. - */ - -char * -script_build_download_url (const char *url) -{ - char *result; - int length; - - if (!url || !url[0]) - return NULL; - - /* length of url + "url:" */ - length = 4 + strlen (url) + 1; - result = malloc (length); - if (!result) - return NULL; - - snprintf (result, length, "url:%s", url); - - return result; -} - -/* * Gets loaded plugins (in array of integers). */ |