doc: fix C example of weechat_hook_process_hashtable (plugin API reference)

This commit is contained in:
stfn 2012-07-05 09:32:15 +02:00 committed by Sebastien Helleu
parent 9f9a37b8e6
commit 26d7fcfc97
3 changed files with 3 additions and 3 deletions

View File

@ -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/",

View File

@ -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/",

View File

@ -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/",