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:
@@ -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/",
|
||||
|
||||
@@ -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/",
|
||||
|
||||
@@ -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/",
|
||||
|
||||
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user