doc: fix C example of weechat_hook_process_hashtable (plugin API reference)
This commit is contained in:
parent
9f9a37b8e6
commit
26d7fcfc97
@ -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/",
|
||||
|
Loading…
x
Reference in New Issue
Block a user