summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-12-27 08:09:48 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-12-27 08:09:48 +0100
commit295158d3e1cd148315d5c383da5980c3e1157396 (patch)
treefa43f9fdc04137f13ebb8b0b3ca67393b213d78c /doc/it
parent39e03d4594acff6a51c33f342d4fdff8f32e69ed (diff)
downloadweechat-295158d3e1cd148315d5c383da5980c3e1157396.zip
doc: fix example for function hdata_search (plugin API reference)
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 6806063dc..bf719f606 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -15104,7 +15104,7 @@ Esempio in C:
[source,C]
----
struct t_hdata *hdata = weechat_hdata_get ("irc_server");
-void *servers = weechat_hdata_get (hdata, "irc_servers");
+void *servers = weechat_hdata_get_list (hdata, "irc_servers");
/* search irc server with name "freenode" */
void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1);