diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-07-06 20:39:02 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-07-06 20:39:02 +0200 |
commit | 965173ded568560a3f5e6fdce51777f65671a0e2 (patch) | |
tree | 6fd3db7517663480c1806270fb9ef932c7a5515e | |
parent | 768c0d9acc9066d7fcf3d51c15cf2e3cae82f616 (diff) | |
download | weechat-965173ded568560a3f5e6fdce51777f65671a0e2.zip |
doc: fix typos in examples of function hook_process_hashtable (plugin API reference)
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 4 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 4 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 4 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 4 |
4 files changed, 8 insertions, 8 deletions
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/", |