mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
doc: fix C example of weechat_hook_process_hashtable (plugin API reference)
This commit is contained in:
@@ -7022,7 +7022,7 @@ struct t_hashtable *options = weechat_hashtable_new (8,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
NULL,
|
||||
NULL);
|
||||
if (hashtable)
|
||||
if (options)
|
||||
{
|
||||
weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html");
|
||||
struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://www.weechat.org/",
|
||||
|
||||
@@ -7125,7 +7125,7 @@ struct t_hashtable *options = weechat_hashtable_new (8,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
NULL,
|
||||
NULL);
|
||||
if (hashtable)
|
||||
if (options)
|
||||
{
|
||||
weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html");
|
||||
struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://www.weechat.org/",
|
||||
|
||||
@@ -7051,7 +7051,7 @@ struct t_hashtable *options = weechat_hashtable_new (8,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
NULL,
|
||||
NULL);
|
||||
if (hashtable)
|
||||
if (options)
|
||||
{
|
||||
weechat_hashtable_set (options, "file_out", "/tmp/weechat.org.html");
|
||||
struct t_hook *my_process_hook = weechat_hook_process_hashtable ("url:http://www.weechat.org/",
|
||||
|
||||
Reference in New Issue
Block a user