1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

doc: fix typos in examples of function hook_process_hashtable (plugin API reference)

This commit is contained in:
Sébastien Helleu
2019-07-06 20:39:02 +02:00
parent 768c0d9acc
commit 965173ded5
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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/",
+2 -2
View File
@@ -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/",
+2 -2
View File
@@ -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/",
+2 -2
View File
@@ -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/",