From 26d7fcfc972fe7eb1f65c615e38e70f4edb2e1fb Mon Sep 17 00:00:00 2001 From: stfn Date: Thu, 5 Jul 2012 09:32:15 +0200 Subject: [PATCH] doc: fix C example of weechat_hook_process_hashtable (plugin API reference) --- doc/en/weechat_plugin_api.en.txt | 2 +- doc/fr/weechat_plugin_api.fr.txt | 2 +- doc/it/weechat_plugin_api.it.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index e791cd709..6cdb94478 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -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/", diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 521be6ca1..53a00f188 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -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/", diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 36e5cd524..79f601955 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -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/",