summaryrefslogtreecommitdiff
path: root/doc/fr
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-11-06 16:03:40 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-11-06 16:03:40 +0100
commitb3cf7658f7dfae712a5f9976171cbe91742ad60f (patch)
tree4638c4dc1cc1fe12da9a33bbf45175426c236fe4 /doc/fr
parent2081fa54affecc7dc906d3cadf17f826cecbc8b5 (diff)
downloadweechat-b3cf7658f7dfae712a5f9976171cbe91742ad60f.zip
doc: replace ${name} by ${server_name} in example of function hdata_search (plugin API reference)
Diffstat (limited to 'doc/fr')
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index b263fdb68..fa61c4fba 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -17543,8 +17543,8 @@ struct t_hashtable *extra_vars = weechat_hashtable_new (8,
NULL);
/* cherche un serveur irc avec le nom "libera" */
-weechat_hashtable_set (extra_vars, "name", "libera");
-void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == ${name}",
+weechat_hashtable_set (extra_vars, "server_name", "libera");
+void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == ${server_name}",
NULL, extra_vars, NULL, 1);
if (server)
{
@@ -17567,8 +17567,8 @@ hdata = weechat.hdata_get("irc_server")
servers = weechat.hdata_get_list(hdata, "irc_servers")
# cherche un serveur irc avec le nom "libera"
-server = weechat.hdata_search(hdata, servers, "${irc_server.name} == ${name}",
- {}, {"name": "libera"}, {}, 1)
+server = weechat.hdata_search(hdata, servers, "${irc_server.name} == ${server_name}",
+ {}, {"server_name": "libera"}, {}, 1)
if server:
# ...
----