diff options
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 70 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 70 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 70 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 70 |
4 files changed, 140 insertions, 140 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 74e1ebdbe..261b01001 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -2766,7 +2766,7 @@ expanded to last): | `+${sec.data.name}+` | Value of the secured data `name`. | - `+${sec.data.freenode_pass}+` | + `+${sec.data.libera_pass}+` | `+my_password+` | `+${file.section.option}+` | @@ -9684,8 +9684,8 @@ Line data sent to the callback is a hashtable, with following values Buffer name. | Buffer name. | `+core.weechat+` + - `+irc.server.freenode+` + - `+irc.freenode.#weechat+` + `+irc.server.libera+` + + `+irc.libera.#weechat+` | buffer_type | "formatted" | @@ -11078,26 +11078,26 @@ C examples: [source,C] ---- -/* say "Hello!" on freenode server, #weechat channel */ +/* say "Hello!" on libera server, #weechat channel */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!"); + "libera;#weechat;priority_high,user_message;;Hello!"); -/* send command "/whois FlashCode" on freenode server, with low priority */ +/* send command "/whois FlashCode" on libera server, with low priority */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode"); + "libera;;priority_low;;/whois FlashCode"); ---- Script (Python): [source,python] ---- -# say "Hello!" on freenode server, #weechat channel +# say "Hello!" on libera server, #weechat channel weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!") + "libera;#weechat;priority_high,user_message;;Hello!") -# send command "/whois FlashCode" on freenode server, with low priority +# send command "/whois FlashCode" on libera server, with low priority weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode") + "libera;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal @@ -11372,13 +11372,13 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, NULL); if (hashtable) { - weechat_hashtable_set (hashtable, "server", "freenode"); + weechat_hashtable_set (hashtable, "server", "libera"); weechat_hashtable_set (hashtable, "pattern", "whois"); weechat_hashtable_set (hashtable, "signal", "test"); weechat_hashtable_set (hashtable, "string", "FlashCode"); weechat_hook_hsignal_send ("irc_redirect_command", hashtable); weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "libera;;2;;/whois FlashCode"); weechat_hashtable_free (hashtable); } ---- @@ -11394,10 +11394,10 @@ def test_whois_cb(data, signal, hashtable): weechat.hook_hsignal("irc_redirection_test_whois", "test_whois_cb", "") weechat.hook_hsignal_send("irc_redirect_command", - {"server": "freenode", "pattern": "whois", "signal": "test", + {"server": "libera", "pattern": "whois", "signal": "test", "string": "FlashCode"}) weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "libera;;2;;/whois FlashCode") ---- [[hsignal_irc_redirect_pattern]] @@ -12210,10 +12210,10 @@ Content of hashtable sent to callback (keys and values are of type "string"): "core", "irc", ... | "" | _buffer_name | Name of buffer. | - "weechat", "freenode.#weechat", ... | "" + "weechat", "libera.#weechat", ... | "" | _buffer_full_name | Full name of buffer. | - "core.weechat", "irc.freenode.#weechat", ... | "" + "core.weechat", "irc.libera.#weechat", ... | "" | _buffer_localvar_XXX ^(2)^ | Local variables of buffer. | any value | not set @@ -12651,7 +12651,7 @@ Arguments: * _plugin_: name of plugin, following special value is allowed: ** `+==+`: the name used is the buffer full name (for example: - `irc.freenode.#weechat` instead of `freenode.#weechat`) + `irc.libera.#weechat` instead of `libera.#weechat`) _(WeeChat ≥ 1.0)_ * _name_: name of buffer, if it is NULL or empty string, the current buffer is returned (buffer displayed by current window); if the name starts with @@ -12665,8 +12665,8 @@ C examples: [source,C] ---- -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.freenode.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ ---- Script (Python): @@ -13417,12 +13417,12 @@ C example: [source,C] ---- -struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "freenode.#weechat"); +struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "libera.#weechat"); if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.freenode.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -13435,11 +13435,11 @@ Script (Python): def buffer_match_list(buffer: str, string: str) -> int: ... # example -buffer = weechat.buffer_search("irc", "freenode.#weechat") +buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.freenode.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- @@ -14991,7 +14991,7 @@ C example: [source,C] ---- int rc; -rc = weechat_command (weechat_buffer_search ("irc", "freenode.#weechat"), +rc = weechat_command (weechat_buffer_search ("irc", "libera.#weechat"), "/whois FlashCode"); ---- @@ -15003,7 +15003,7 @@ Script (Python): def command(buffer: str, command: str) -> int: ... # example -rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois FlashCode") +rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois FlashCode") ---- ==== command_options @@ -15327,7 +15327,7 @@ C example: [source,C] ---- -if (weechat_network_pass_proxy ("my_proxy", sock, "chat.freenode.net", 6667)) +if (weechat_network_pass_proxy ("my_proxy", sock, "irc.libera.chat", 6667)) { /* OK */ } @@ -17154,8 +17154,8 @@ C example: struct t_hdata *hdata = weechat_hdata_get ("irc_server"); 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); +/* search irc server with name "libera" */ +void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == libera", 1); if (server) { /* ... */ @@ -17173,8 +17173,8 @@ def hdata_search(hdata: str, pointer: str, search: str, count: int) -> str: ... hdata = weechat.hdata_get("irc_server") servers = weechat.hdata_get_list(hdata, "irc_servers") -# search irc server with name "freenode" -server = weechat.hdata_search(hdata, servers, "${irc_server.name} == freenode", 1) +# search irc server with name "libera" +server = weechat.hdata_search(hdata, servers, "${irc_server.name} == libera", 1) if server: # ... ---- @@ -17553,8 +17553,8 @@ C example: [source,C] ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr"); +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "libera.#weechat-fr"); weechat_printf (NULL, "number comparison = %d", weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0)); ---- @@ -17568,8 +17568,8 @@ def hdata_compare(hdata: str, pointer1: str, pointer2: str, name: str, case_sens # example hdata = weechat.hdata_get("buffer") -buffer1 = weechat.buffer_search("irc", "freenode.#weechat") -buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr") +buffer1 = weechat.buffer_search("irc", "libera.#weechat") +buffer2 = weechat.buffer_search("irc", "libera.#weechat-fr") weechat.prnt("", "number comparison = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0)) ---- diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 196f5a9c3..f2d431736 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -2813,7 +2813,7 @@ première étendue à la dernière) : | `+${sec.data.nom}+` | Valeur de la donnée sécurisée `nom`. | - `+${sec.data.freenode_pass}+` | + `+${sec.data.libera_pass}+` | `+mon_mot_de_passe+` | `+${fichier.section.option}+` | @@ -9873,8 +9873,8 @@ de hachage, avec les valeurs suivantes (les clés et valeurs sont des chaînes) Nom du tampon. | Nom du tampon. | `+core.weechat+` + - `+irc.server.freenode+` + - `+irc.freenode.#weechat+` + `+irc.server.libera+` + + `+irc.libera.#weechat+` | buffer_type | "formatted" | @@ -11294,26 +11294,26 @@ Exemples en C : [source,C] ---- -/* dis "Bonjour !" sur le serveur freenode, canal #weechat */ +/* dis "Bonjour !" sur le serveur libera, canal #weechat */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Bonjour !"); + "libera;#weechat;priority_high,user_message;;Bonjour !"); -/* envoie la commande "/whois FlashCode" sur le canal freenode, en basse priorité */ +/* envoie la commande "/whois FlashCode" sur le canal libera, en basse priorité */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode"); + "libera;;priority_low;;/whois FlashCode"); ---- Script (Python) : [source,python] ---- -# dis "Bonjour !" sur le serveur freenode, canal #weechat +# dis "Bonjour !" sur le serveur libera, canal #weechat weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Bonjour !") + "libera;#weechat;priority_high,user_message;;Bonjour !") -# envoie la commande "/whois FlashCode" sur le canal freenode, en basse priorité +# envoie la commande "/whois FlashCode" sur le canal libera, en basse priorité weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode") + "libera;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal @@ -11595,13 +11595,13 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, NULL); if (hashtable) { - weechat_hashtable_set (hashtable, "server", "freenode"); + weechat_hashtable_set (hashtable, "server", "libera"); weechat_hashtable_set (hashtable, "pattern", "whois"); weechat_hashtable_set (hashtable, "signal", "test"); weechat_hashtable_set (hashtable, "string", "FlashCode"); weechat_hook_hsignal_send ("irc_redirect_command", hashtable); weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "libera;;2;;/whois FlashCode"); weechat_hashtable_free (hashtable); } ---- @@ -11617,10 +11617,10 @@ def test_whois_cb(data, signal, hashtable): weechat.hook_hsignal("irc_redirection_test_whois", "test_whois_cb", "") weechat.hook_hsignal_send("irc_redirect_command", - {"server": "freenode", "pattern": "whois", "signal": "test", + {"server": "libera", "pattern": "whois", "signal": "test", "string": "FlashCode"}) weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "libera;;2;;/whois FlashCode") ---- [[hsignal_irc_redirect_pattern]] @@ -12476,10 +12476,10 @@ valeurs sont de type "string") : "core", "irc", ... | "" | _buffer_name | Nom du tampon. | - "weechat", "freenode.#weechat", ... | "" + "weechat", "libera.#weechat", ... | "" | _buffer_full_name | Nom complet du tampon. | - "core.weechat", "irc.freenode.#weechat", ... | "" + "core.weechat", "irc.libera.#weechat", ... | "" | _buffer_localvar_XXX ^(2)^ | Variables locales du tampon. | toute chaîne | non défini @@ -12922,7 +12922,7 @@ Paramètres : * _plugin_ : nom de l'extension, la valeur spéciale suivante est autorisée : ** `+==+` : le nom utilisé est le nom complet du tampon (par exemple : - `irc.freenode.#weechat` au lieu de `freenode.#weechat`) + `irc.libera.#weechat` au lieu de `libera.#weechat`) _(WeeChat ≥ 1.0)_ * _name_ : nom du tampon, si c'est NULL ou une chaîne vide, le tampon courant est retourné (tampon affiché par la fenêtre courante); si le nom commence par @@ -12936,8 +12936,8 @@ Exemples en C : [source,C] ---- -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.freenode.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ ---- Script (Python) : @@ -13705,12 +13705,12 @@ Exemple en C : [source,C] ---- -struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "freenode.#weechat"); +struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "libera.#weechat"); if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.freenode.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -13723,11 +13723,11 @@ Script (Python) : def buffer_match_list(buffer: str, string: str) -> int: ... # exemple -buffer = weechat.buffer_search("irc", "freenode.#weechat") +buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.freenode.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- @@ -15309,7 +15309,7 @@ Exemple en C : [source,C] ---- int rc; -rc = weechat_command (weechat_buffer_search ("irc", "freenode.#weechat"), +rc = weechat_command (weechat_buffer_search ("irc", "libera.#weechat"), "/whois FlashCode"); ---- @@ -15321,7 +15321,7 @@ Script (Python) : def command(buffer: str, command: str) -> int: ... # exemple -rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois FlashCode") +rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois FlashCode") ---- ==== command_options @@ -15645,7 +15645,7 @@ Exemple en C : [source,C] ---- -if (weechat_network_pass_proxy ("mon_proxy", sock, "chat.freenode.net", 6667)) +if (weechat_network_pass_proxy ("mon_proxy", sock, "irc.libera.chat", 6667)) { /* OK */ } @@ -17501,8 +17501,8 @@ Exemple en C : struct t_hdata *hdata = weechat_hdata_get ("irc_server"); void *servers = weechat_hdata_get_list (hdata, "irc_servers"); -/* cherche un serveur irc avec le nom "freenode" */ -void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1); +/* cherche un serveur irc avec le nom "libera" */ +void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == libera", 1); if (server) { /* ... */ @@ -17520,8 +17520,8 @@ def hdata_search(hdata: str, pointer: str, search: str, count: int) -> str: ... hdata = weechat.hdata_get("irc_server") servers = weechat.hdata_get_list(hdata, "irc_servers") -# cherche un serveur irc avec le nom "freenode" -server = weechat.hdata_search(hdata, servers, "${irc_server.name} == freenode", 1) +# cherche un serveur irc avec le nom "libera" +server = weechat.hdata_search(hdata, servers, "${irc_server.name} == libera", 1) if server: # ... ---- @@ -17915,8 +17915,8 @@ Exemple en C : [source,C] ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr"); +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "libera.#weechat-fr"); weechat_printf (NULL, "comparaison de numéro = %d", weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0)); ---- @@ -17929,8 +17929,8 @@ def hdata_compare(hdata: str, pointer1: str, pointer2: str, name: str, case_sens # exemple hdata = weechat.hdata_get("buffer") -buffer1 = weechat.buffer_search("irc", "freenode.#weechat") -buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr") +buffer1 = weechat.buffer_search("irc", "libera.#weechat") +buffer2 = weechat.buffer_search("irc", "libera.#weechat-fr") weechat.prnt("", "comparaison de numéro = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0)) ---- diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 25b082a7d..9b8bd06bd 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -2862,7 +2862,7 @@ expanded to last): | `+${sec.data.name}+` | Value of the secured data `name`. | - `+${sec.data.freenode_pass}+` | + `+${sec.data.libera_pass}+` | `+my_password+` | `+${file.section.option}+` | @@ -9989,8 +9989,8 @@ Line data sent to the callback is a hashtable, with following values Buffer name. | Buffer name. | `+core.weechat+` + - `+irc.server.freenode+` + - `+irc.freenode.#weechat+` + `+irc.server.libera+` + + `+irc.libera.#weechat+` | buffer_type | "formatted" | @@ -11500,26 +11500,26 @@ Esempi in C: [source,C] ---- -/* dice "Hello!" sul server freenode, canale #weechat */ +/* dice "Hello!" sul server libera, canale #weechat */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!"); + "libera;#weechat;priority_high,user_message;;Hello!"); -/* invia il comando "/whois FlashCode" sul server freenode, con priorità minore */ +/* invia il comando "/whois FlashCode" sul server libera, con priorità minore */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode"); + "libera;;priority_low;;/whois FlashCode"); ---- Script (Python): [source,python] ---- -# dice "Hello!" sul server freenode server, canale #weechat +# dice "Hello!" sul server libera server, canale #weechat weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!") + "libera;#weechat;priority_high,user_message;;Hello!") -# invia il comando "/whois FlashCode" sul server freenode, con priorità minore +# invia il comando "/whois FlashCode" sul server libera, con priorità minore weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode") + "libera;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal @@ -11809,13 +11809,13 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, NULL); if (hashtable) { - weechat_hashtable_set (hashtable, "server", "freenode"); + weechat_hashtable_set (hashtable, "server", "libera"); weechat_hashtable_set (hashtable, "pattern", "whois"); weechat_hashtable_set (hashtable, "signal", "test"); weechat_hashtable_set (hashtable, "string", "FlashCode"); weechat_hook_hsignal_send ("irc_redirect_command", hashtable); weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "libera;;2;;/whois FlashCode"); weechat_hashtable_free (hashtable); } ---- @@ -11831,10 +11831,10 @@ def test_whois_cb(data, signal, hashtable): weechat.hook_hsignal("irc_redirection_test_whois", "test_whois_cb", "") weechat.hook_hsignal_send("irc_redirect_command", - {"server": "freenode", "pattern": "whois", "signal": "test", + {"server": "libera", "pattern": "whois", "signal": "test", "string": "FlashCode"}) weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "libera;;2;;/whois FlashCode") ---- [[hsignal_irc_redirect_pattern]] @@ -12694,10 +12694,10 @@ Contenuto della tabella hash inviata alla callback (tasti e valori sono di tipo "core", "irc", ... | "" | _buffer_name | Nome del buffer. | - "weechat", "freenode.#weechat", ... | "" + "weechat", "libera.#weechat", ... | "" | _buffer_full_name | Nome completo del buffer. | - "core.weechat", "irc.freenode.#weechat", ... | "" + "core.weechat", "irc.libera.#weechat", ... | "" | _buffer_localvar_XXX ^(2)^ | Variabili locali del buffer. | qualsiasi valore | non impostato @@ -13161,7 +13161,7 @@ Argomenti: // TRANSLATION MISSING * _plugin_: name of plugin, following special value is allowed: ** `+==+`: the name used is the buffer full name (for example: - `irc.freenode.#weechat` instead of `freenode.#weechat`) + `irc.libera.#weechat` instead of `libera.#weechat`) _(WeeChat ≥ 1.0)_ // TRANSLATION MISSING * _name_: name of buffer, if it is NULL or empty string, the current buffer is @@ -13176,8 +13176,8 @@ Esempio in C: [source,C] ---- -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.freenode.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ ---- Script (Python): @@ -13975,12 +13975,12 @@ Esempio in C: [source,C] ---- -struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "freenode.#weechat"); +struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "libera.#weechat"); if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.freenode.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -13993,11 +13993,11 @@ Script (Python): def buffer_match_list(buffer: str, string: str) -> int: ... # esempio -buffer = weechat.buffer_search("irc", "freenode.#weechat") +buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.freenode.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- @@ -15589,7 +15589,7 @@ Esempio in C: [source,C] ---- int rc; -rc = weechat_command (weechat_buffer_search ("irc", "freenode.#weechat"), +rc = weechat_command (weechat_buffer_search ("irc", "libera.#weechat"), "/whois FlashCode"); ---- @@ -15601,7 +15601,7 @@ Script (Python): def command(buffer: str, command: str) -> int: ... # esempio -rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois FlashCode") +rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois FlashCode") ---- ==== command_options @@ -15937,7 +15937,7 @@ Esempio in C: [source,C] ---- -if (weechat_network_pass_proxy ("my_proxy", sock, "chat.freenode.net", 6667)) +if (weechat_network_pass_proxy ("my_proxy", sock, "irc.libera.chat", 6667)) { /* OK */ } @@ -17823,8 +17823,8 @@ Esempio in C: struct t_hdata *hdata = weechat_hdata_get ("irc_server"); 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); +/* search irc server with name "libera" */ +void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == libera", 1); if (server) { /* ... */ @@ -17843,8 +17843,8 @@ def hdata_search(hdata: str, pointer: str, search: str, count: int) -> str: ... hdata = weechat.hdata_get("irc_server") servers = weechat.hdata_get_list(hdata, "irc_servers") -# search irc server with name "freenode" -server = weechat.hdata_search(hdata, servers, "${irc_server.name} == freenode", 1) +# search irc server with name "libera" +server = weechat.hdata_search(hdata, servers, "${irc_server.name} == libera", 1) if server: # ... ---- @@ -18239,8 +18239,8 @@ Esempio in C: [source,C] ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr"); +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "libera.#weechat-fr"); weechat_printf (NULL, "number comparison = %d", weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0)); ---- @@ -18254,8 +18254,8 @@ def hdata_compare(hdata: str, pointer1: str, pointer2: str, name: str, case_sens # esempio hdata = weechat.hdata_get("buffer") -buffer1 = weechat.buffer_search("irc", "freenode.#weechat") -buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr") +buffer1 = weechat.buffer_search("irc", "libera.#weechat") +buffer2 = weechat.buffer_search("irc", "libera.#weechat-fr") weechat.prnt("", "number comparison = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0)) ---- diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index a3d55d739..21fe38997 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -2805,7 +2805,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio | `+${sec.data.name}+` | セキュアデータ `name` の値 | - `+${sec.data.freenode_pass}+` | + `+${sec.data.libera_pass}+` | `+my_password+` | `+${file.section.option}+` | @@ -9692,8 +9692,8 @@ struct t_hook *weechat_hook_line (const char *buffer_type, バッファ名 | バッファ名 | `+core.weechat+` + - `+irc.server.freenode+` + - `+irc.freenode.#weechat+` + `+irc.server.libera+` + + `+irc.libera.#weechat+` | buffer_type | "formatted" | @@ -11089,26 +11089,26 @@ C 言語での使用例: [source,C] ---- -/* say "Hello!" on freenode server, #weechat channel */ +/* say "Hello!" on libera server, #weechat channel */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!"); + "libera;#weechat;priority_high,user_message;;Hello!"); -/* send command "/whois FlashCode" on freenode server, with low priority */ +/* send command "/whois FlashCode" on libera server, with low priority */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode"); + "libera;;priority_low;;/whois FlashCode"); ---- スクリプト (Python) での使用例: [source,python] ---- -# say "Hello!" on freenode server, #weechat channel +# say "Hello!" on libera server, #weechat channel weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;priority_high,user_message;;Hello!") + "libera;#weechat;priority_high,user_message;;Hello!") -# send command "/whois FlashCode" on freenode server, with low priority +# send command "/whois FlashCode" on libera server, with low priority weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;priority_low;;/whois FlashCode") + "libera;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal @@ -11383,13 +11383,13 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, NULL); if (hashtable) { - weechat_hashtable_set (hashtable, "server", "freenode"); + weechat_hashtable_set (hashtable, "server", "libera"); weechat_hashtable_set (hashtable, "pattern", "whois"); weechat_hashtable_set (hashtable, "signal", "test"); weechat_hashtable_set (hashtable, "string", "FlashCode"); weechat_hook_hsignal_send ("irc_redirect_command", hashtable); weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "libera;;2;;/whois FlashCode"); weechat_hashtable_free (hashtable); } ---- @@ -11405,10 +11405,10 @@ def test_whois_cb(data, signal, hashtable): weechat.hook_hsignal("irc_redirection_test_whois", "test_whois_cb", "") weechat.hook_hsignal_send("irc_redirect_command", - {"server": "freenode", "pattern": "whois", "signal": "test", + {"server": "libera", "pattern": "whois", "signal": "test", "string": "FlashCode"}) weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "libera;;2;;/whois FlashCode") ---- [[hsignal_irc_redirect_pattern]] @@ -12231,10 +12231,10 @@ info を使う前にエリアが一致していることを確認して下さい "core"、"irc"、... | "" | _buffer_name | バッファの名前 | - "weechat"、"freenode.#weechat"、... | "" + "weechat"、"libera.#weechat"、... | "" | _buffer_full_name | バッファの完全な名前 | - "core.weechat"、"irc.freenode.#weechat"、... | "" + "core.weechat"、"irc.libera.#weechat"、... | "" | _buffer_localvar_XXX ^(2)^ | バッファのローカル変数 | 任意の値 | 未定義 @@ -12675,7 +12675,7 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, * _plugin_: プラグインの名前、以下の特殊値を使うことができます: ** `+==+`: name 引数でバッファの完全な名前を使う (例: - `freenode.#weechat` ではなく `irc.freenode.#weechat`) + `libera.#weechat` ではなく `irc.libera.#weechat`) _(WeeChat バージョン 1.0 以上で利用可)_ * _name_: バッファの名前、NULL または空文字列の場合、現在のバッファ (現在のウィンドウに表示されているバッファ) を返す; 名前が `(?i)` @@ -12689,8 +12689,8 @@ C 言語での使用例: [source,C] ---- -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.freenode.#test"); /* WeeChat バージョン 1.0 以上で利用可 */ +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat バージョン 1.0 以上で利用可 */ ---- スクリプト (Python) での使用例: @@ -13438,12 +13438,12 @@ C 言語での使用例: [source,C] ---- -struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "freenode.#weechat"); +struct t_gui_buffer *buffer = weechat_buffer_search ("irc", "libera.#weechat"); if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.freenode.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -13456,11 +13456,11 @@ if (buffer) def buffer_match_list(buffer: str, string: str) -> int: ... # 例 -buffer = weechat.buffer_search("irc", "freenode.#weechat") +buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.freenode.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- @@ -15015,7 +15015,7 @@ C 言語での使用例: [source,C] ---- int rc; -rc = weechat_command (weechat_buffer_search ("irc", "freenode.#weechat"), +rc = weechat_command (weechat_buffer_search ("irc", "libera.#weechat"), "/whois FlashCode"); ---- @@ -15027,7 +15027,7 @@ rc = weechat_command (weechat_buffer_search ("irc", "freenode.#weechat"), def command(buffer: str, command: str) -> int: ... # 例 -rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois FlashCode") +rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois FlashCode") ---- ==== command_options @@ -15357,7 +15357,7 @@ C 言語での使用例: [source,C] ---- -if (weechat_network_pass_proxy ("my_proxy", sock, "chat.freenode.net", 6667)) +if (weechat_network_pass_proxy ("my_proxy", sock, "irc.libera.chat", 6667)) { /* OK */ } @@ -17184,8 +17184,8 @@ C 言語での使用例: struct t_hdata *hdata = weechat_hdata_get ("irc_server"); 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); +/* search irc server with name "libera" */ +void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == libera", 1); if (server) { /* ... */ @@ -17203,8 +17203,8 @@ def hdata_search(hdata: str, pointer: str, search: str, count: int) -> str: ... hdata = weechat.hdata_get("irc_server") servers = weechat.hdata_get_list(hdata, "irc_servers") -# search irc server with name "freenode" -server = weechat.hdata_search(hdata, servers, "${irc_server.name} == freenode", 1) +# search irc server with name "libera" +server = weechat.hdata_search(hdata, servers, "${irc_server.name} == libera", 1) if server: # ... ---- @@ -17583,8 +17583,8 @@ C 言語での使用例: [source,C] ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); -struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat"); -struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr"); +struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); +struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "libera.#weechat-fr"); weechat_printf (NULL, "number comparison = %d", weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0)); ---- @@ -17598,8 +17598,8 @@ def hdata_compare(hdata: str, pointer1: str, pointer2: str, name: str, case_sens # 例 hdata = weechat.hdata_get("buffer") -buffer1 = weechat.buffer_search("irc", "freenode.#weechat") -buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr") +buffer1 = weechat.buffer_search("irc", "libera.#weechat") +buffer2 = weechat.buffer_search("irc", "libera.#weechat-fr") weechat.prnt("", "number comparison = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0)) ---- |