summaryrefslogtreecommitdiff
path: root/doc/ja/weechat_plugin_api.ja.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.adoc')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index fd133b95c..93ba54fe1 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -17252,8 +17252,8 @@ struct t_hashtable *extra_vars = weechat_hashtable_new (8,
NULL);
/* search irc server with name "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)
{
@@ -17276,8 +17276,8 @@ hdata = weechat.hdata_get("irc_server")
servers = weechat.hdata_get_list(hdata, "irc_servers")
# search irc server with name "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:
# ...
----