diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 8 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 8 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 8 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 8 | ||||
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 8 |
5 files changed, 20 insertions, 20 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index ea953ffd7..1b207b68b 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -17188,8 +17188,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) { @@ -17212,8 +17212,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: # ... ---- 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: # ... ---- diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index b1e224b42..8e4192785 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -17884,8 +17884,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) { @@ -17909,8 +17909,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: # ... ---- 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: # ... ---- diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index e430584ce..3eeeb8720 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -16621,8 +16621,8 @@ struct t_hashtable *extra_vars = weechat_hashtable_new (8, NULL); /* тражи irc сервер под именом „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) { @@ -16645,8 +16645,8 @@ hdata = weechat.hdata_get("irc_server") servers = weechat.hdata_get_list(hdata, "irc_servers") # тражи irc сервер под именом „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: # ... ---- |