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.adoc70
1 files changed, 35 insertions, 35 deletions
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))
----