summaryrefslogtreecommitdiff
path: root/doc/fr
diff options
context:
space:
mode:
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:
# ...
----