diff options
Diffstat (limited to 'doc/en/weechat_plugin_api.en.adoc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 70 |
1 files changed, 35 insertions, 35 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)) ---- |