diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-27 08:09:48 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-27 08:09:48 +0100 |
commit | 295158d3e1cd148315d5c383da5980c3e1157396 (patch) | |
tree | fa43f9fdc04137f13ebb8b0b3ca67393b213d78c /doc/it | |
parent | 39e03d4594acff6a51c33f342d4fdff8f32e69ed (diff) | |
download | weechat-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.asciidoc | 2 |
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); |