diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 8c59c1359..f95753e5b 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -8969,7 +8969,7 @@ struct t_hashtable *options_url1 = weechat_hashtable_new (8, NULL); if (options_url1) { - weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html"); + weechat_hashtable_set (options_url1, "file_out", "/tmp/weechat.org.html"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:https://weechat.org/", options_url1, 20000, @@ -8985,7 +8985,7 @@ struct t_hashtable *options_url2 = weechat_hashtable_new (8, NULL); if (options_url2) { - weechat_hashtable_set (options, "httpheader", + weechat_hashtable_set (options_url2, "httpheader", "Header1: value1\n" "Header2: value2"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://localhost:8080/", diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 27fbaff06..3ff249538 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -9140,7 +9140,7 @@ struct t_hashtable *options_url1 = weechat_hashtable_new (8, NULL); if (options_url1) { - weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html"); + weechat_hashtable_set (options_url1, "file_out", "/tmp/weechat.org.html"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:https://weechat.org/", options_url1, 20000, @@ -9156,7 +9156,7 @@ struct t_hashtable *options_url2 = weechat_hashtable_new (8, NULL); if (options_url2) { - weechat_hashtable_set (options, "httpheader", + weechat_hashtable_set (options_url2, "httpheader", "Header1: valeur1\n" "Header2: valeur2"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://localhost:8080/", diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 78417a469..c2ad9dc92 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -9268,7 +9268,7 @@ struct t_hashtable *options_url1 = weechat_hashtable_new (8, NULL); if (options_url1) { - weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html"); + weechat_hashtable_set (options_url1, "file_out", "/tmp/weechat.org.html"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:https://weechat.org/", options_url1, 20000, @@ -9284,7 +9284,7 @@ struct t_hashtable *options_url2 = weechat_hashtable_new (8, NULL); if (options_url2) { - weechat_hashtable_set (options, "httpheader", + weechat_hashtable_set (options_url2, "httpheader", "Header1: value1\n" "Header2: value2"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://localhost:8080/", diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index fad46760f..6ec16f469 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -8935,7 +8935,7 @@ struct t_hashtable *options_url1 = weechat_hashtable_new (8, NULL); if (options_url1) { - weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html"); + weechat_hashtable_set (options_url1, "file_out", "/tmp/weechat.org.html"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:https://weechat.org/", options_url1, 20000, @@ -8951,7 +8951,7 @@ struct t_hashtable *options_url2 = weechat_hashtable_new (8, NULL); if (options_url2) { - weechat_hashtable_set (options, "httpheader", + weechat_hashtable_set (options_url2, "httpheader", "Header1: value1\n" "Header2: value2"); struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://localhost:8080/",