Sébastien Helleu
6526cc230a
relay/api: add input fields in GET /api/buffers
...
New fields returned:
- "input" (string): content of input
- "input_position" (integer): position in input (starts at 0)
- "input_multiline" (boolean): true if the buffer allows multiline input
2024-05-05 23:07:42 +02:00
Sébastien Helleu
211cd11c2a
relay/api: add parameter "lines_free" in GET /api/buffers
...
This parameter is the number of lines to return for buffers with free content.
Its default value is `0` if "lines" is set to `0`, otherwise all buffer lines
are returned.
2024-05-05 22:30:04 +02:00
Sébastien Helleu
0cf504dce7
tests: add test on relay API preflight request (OPTIONS)
2024-05-05 14:13:03 +02:00
Sébastien Helleu
6839974a07
tests: fix relay API protocol tests
2024-05-05 11:37:05 +02:00
Sébastien Helleu
586e66d6fa
tests: add placeholders for tests on relay api remote event functions
2024-05-04 11:41:23 +02:00
Sébastien Helleu
afe037c579
relay/api: add buffer keys in GET /api/buffers (issue #2066 )
2024-05-01 13:53:58 +02:00
Sébastien Helleu
b8f6468590
relay/api: add color names for groups and nicks in GET /api/buffers
2024-04-29 22:43:38 +02:00
Sébastien Helleu
de24921609
relay/api: add nicklist boolean fields in GET /api/buffers
2024-04-29 22:05:47 +02:00
Sébastien Helleu
1d9cdba58e
relay/api: rename field "nicklist" to "nicklist_root" in GET /api/buffers
2024-04-29 21:56:38 +02:00
Sébastien Helleu
9cd7fd38a9
api: allow to set nicklist group/nick id in functions nicklist_group_set and nicklist_nick_set (issue #2081 )
2024-04-29 21:07:04 +02:00
Sébastien Helleu
ded599b272
api: allow search by group and nick id in functions nicklist_search_group and nicklist_search_nick (issue #2081 )
2024-04-29 19:22:57 +02:00
Sébastien Helleu
6c706caa50
tests/gui: add tests on nicklist functions
2024-04-28 22:31:37 +02:00
Sébastien Helleu
96ff7248ef
core: remove obsolete function gui_nicklist_get_max_length
2024-04-28 19:10:05 +02:00
Sébastien Helleu
4a058ae0f5
trigger: remove check of NULL pointers before calling trigger_free() (issue #865 )
2024-04-26 21:24:14 +02:00
Sébastien Helleu
9c3eda660d
relay: remove check of NULL pointers before calling relay_websocket_deflate_free() (issue #865 )
2024-04-26 21:23:39 +02:00
Sébastien Helleu
ba97a39565
relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865 )
2024-04-26 21:22:49 +02:00
Sébastien Helleu
7438d2c737
alias: remove check of NULL pointers before calling alias_free() (issue #865 )
2024-04-26 21:21:48 +02:00
Sébastien Helleu
a7b21fa647
core: remove check of NULL pointers before calling gui_bar_window_free() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
890caf4e8e
core: remove check of NULL pointers before calling gui_bar_item_free() (issue #865 )
2024-04-26 21:17:13 +02:00
Sébastien Helleu
a59fa70a94
irc: remove check of NULL pointers before calling weechat_list_free() (issue #865 )
2024-04-26 21:06:47 +02:00
Sébastien Helleu
ee51e6c05f
plugins: remove check of NULL pointers before calling weechat_infolist_free() (issue #865 )
2024-04-26 21:06:06 +02:00
Sébastien Helleu
561dd92d8e
plugins: remove check of NULL pointers before calling weechat_config_option_free() (issue #865 )
2024-04-26 20:59:44 +02:00
Sébastien Helleu
619b40b42f
core: remove check of NULL pointers before calling string_shared_free() (issue #865 )
2024-04-26 08:55:35 +02:00
Sébastien Helleu
0b2d9bcb9b
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
828ca37225
tests: split hook tests into multiple files (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
6cf163f00c
tests: move hook modifier tests to a separate file (issue #865 )
2024-04-26 07:51:49 +02:00
Sébastien Helleu
3eed74a75c
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865 )
2024-04-26 07:37:22 +02:00
Sébastien Helleu
984fdb2b58
relay: add TLS connection to remote, add remote option "tls_verify"
2024-04-14 19:00:05 +02:00
90
8c3f16dbe3
core: add support for $XDG_STATE_HOME
2024-04-12 22:57:57 +02:00
Sébastien Helleu
c112d0aafa
tests: add placeholder for tests on function gui_line_is_action
2024-04-11 23:03:44 +02:00
Sébastien Helleu
b0b733a8f0
core: use nick offline color for nick in action message
2024-04-11 22:52:54 +02:00
Sébastien Helleu
86dea12b71
tests: fix relay/api tests on group and nick colors
2024-04-07 17:22:03 +02:00
Sébastien Helleu
14beee8a91
relay/api: rename field "nicks" to "nicklist" in GET /api/buffers
2024-04-07 13:18:14 +02:00
Sébastien Helleu
7c2f44e74e
relay/api: add nicklist group and nick id in response to GET /api/buffers (issue #2081 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
89fe540b53
core: add unique "id" in nicklist group and nick (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all groups and nicks inside the buffer, and
the same number is never used again in the same buffer, during the lifetime of
the process.
It persists and is unchanged after `/upgrade`.
2024-04-07 13:18:14 +02:00
Sébastien Helleu
a499b50b7b
relay: add synchronization with remote and handler for events received (issue #2066 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
2cf66de423
api: add function "asprintf"
2024-04-07 13:18:13 +02:00
Sébastien Helleu
4adb64284b
buffer: add property input_get_any_user_data in buffer (issue #2066 )
...
This allows buffers to get any user input, including commands, that are sent to
the buffer callback instead of being executed on the buffer.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
cb785d5035
relay/api: add "request" and "request_body" in response when connected via websocket (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
4460f92727
relay: stop URL address before the first question mark if colon is not found (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
f507be4128
tests: add tests on relay remote functions (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
90b855e1aa
relay: add connection to remote (issue #2066 )
...
Connection to remote:
- handshake: offer support for all supported hash algorithms
- network connect with a socket
- upgrade to websocket and authenticate with remote (password/TOTP)
- check websocket response
- get list of buffers (not used yet)
Note: connection to remote with TLS or a proxy is not yet supported.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
c2343ecb74
relay: add functions to parse HTTP response (issue #2066 )
2024-04-07 13:16:50 +02:00
Sébastien Helleu
786f889251
relay: add command /remote, add remote configuration in relay.conf (issue #2066 )
2024-04-07 13:16:47 +02:00
Sébastien Helleu
40bfded594
irc: fix display of reply for CTCP request received on a channel when capability echo-message is enabled
2024-04-06 22:44:04 +02:00
Sébastien Helleu
2c3c9a3ee7
tests: rename variable "i" to "echo_message"
2024-04-06 18:29:42 +02:00
Sébastien Helleu
74729ce677
irc: display CTCP reply to a nick in server buffer instead of channel
...
When a CTCP request is received on a channel, WeeChat replies to the nick and
it is now displayed in the server buffer instead of the channel, as the target
is a nick and not a channel.
2024-04-06 16:42:15 +02:00
Sébastien Helleu
d81170b010
tests: add extra tests on received IRC CTCP messages
2024-04-06 16:37:40 +02:00
Sébastien Helleu
965beb37de
core: fix print of pointer values
2024-04-01 21:08:52 +02:00
Sébastien Helleu
9bc4352089
core: fix tests on function strftimeval on Alpine
2024-03-24 20:56:29 +01:00