Sébastien Helleu
396f47e9ae
xfer: fix display of input prompt in DCC chat buffers (issue #2128 )
2024-06-06 13:30:25 +02:00
Sébastien Helleu
0b1e940829
irc: fix display of input prompt in private buffers ( closes #2128 )
2024-06-05 21:03:44 +02:00
Sébastien Helleu
f104b4119a
irc: don't return pointer to irc server if the channel or nick is not found in info "irc_buffer"
2024-06-02 22:49:41 +02:00
Sébastien Helleu
26fa0ea1b8
relay: enable websocket extension "permessage-deflate" with "api" relay only
2024-06-02 09:05:40 +02:00
Sébastien Helleu
9264803bc3
relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters
2024-06-01 15:15:01 +02:00
Sébastien Helleu
d05df9ee21
relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure
2024-06-01 14:42:55 +02:00
Sébastien Helleu
8dad5403ee
relay: add quotes around protocol names in options, mention "api" before "weechat"
2024-06-01 13:05:27 +02:00
Sébastien Helleu
e39a309365
relay: add option relay.network.websocket_permessage_deflate
2024-06-01 12:58:17 +02:00
Sébastien Helleu
b38cf0e9a3
relay: use API function string_cut to truncate raw relay messages
...
This is faster than the custom function that was adding " (...) " in the middle
of the message.
2024-05-31 12:04:13 +02:00
Sébastien Helleu
768416983c
xfer: fix send of data on the DCC chat buffer after /upgrade if the buffer was opened before the upgrade ( closes #2092 )
2024-05-31 08:11:55 +02:00
Sébastien Helleu
e841c11b54
relay: add option relay.look.raw_messages_max_length (issue #2122 )
2024-05-29 23:07:58 +02:00
Sébastien Helleu
bd8e0d8bfa
relay/remote: add translations for some messages displayed
2024-05-27 21:46:24 +02:00
Sébastien Helleu
bf4e47b9f2
core: fix detection of libgcrypt ≥ 1.11 (debian #1071960 )
...
Use pkg-config to detect libgcrypt, since command `libgcrypt-config` is not
available any more.
Remove patches for Debian/Raspbian Buster and Ubuntu Bionic: detection of
libgcrypt don't work any more with version 1.8.4 on Debian Buster and 1.8.1 on
Ubuntu Bionic (both versions don't provide the file `libgcrypt.pc`).
2024-05-27 08:15:59 +02:00
Sébastien Helleu
85c02e9137
irc: close /list buffer when the server buffer is closed ( closes #2121 )
2024-05-27 07:40:03 +02:00
Sébastien Helleu
8d86d85b66
relay: fix compiler warnings when cJSON is disabled
2024-05-26 23:46:52 +02:00
Sébastien Helleu
5a8751b9eb
core, relay: fix include directory of libcjson and libzstd
2024-05-26 23:13:49 +02:00
Sébastien Helleu
96f9942aed
php: fix return value of function hdata_longlong
2024-05-26 16:24:16 +02:00
LuK1337
4e01c077d6
tcl: fix return value for hdata_longlong
...
Using API_RETURN_LONG() here breaks tests on i368.
2024-05-26 15:59:12 +02:00
Sébastien Helleu
62ab68715d
relay: add infos "relay_api_version" and "relay_api_version_number"
2024-05-26 10:44:23 +02:00
Sébastien Helleu
8444670ef1
relay/api: set API version to 0.1.0 in OpenAPI document
2024-05-26 08:39:28 +02:00
Sébastien Helleu
12378b3a19
relay/api: set API version to 0.1.0
2024-05-26 00:04:28 +02:00
Sébastien Helleu
2488466b0c
irc: fix crash in split of IRC message containing a newline if the server is not given
2024-05-25 19:28:49 +02:00
Sébastien Helleu
2c7057bf22
relay/remote: fix relay API version comparison with a string that can be NULL
2024-05-25 19:11:25 +02:00
Sébastien Helleu
5294249515
relay: fix compiler warning in call to snprintf
...
This fixes the following warning emitted by gcc:
…/relay-http.c:1207:32: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=]
1207 | "%s[%d bytes data]",
| ^~
1208 | str_header,
| ~~~~~~~~~~
…/relay-http.c:1207:31: note: directive argument in the range [1, 2147483647]
1207 | "%s[%d bytes data]",
| ^~~~~~~~~~~~~~~~~~~
…/relay-http.c:1206:21: note: ‘snprintf’ output between 15 and 1047 bytes into a destination of size 64
1206 | snprintf (raw_message, length_raw,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1207 | "%s[%d bytes data]",
| ~~~~~~~~~~~~~~~~~~~~
1208 | str_header,
| ~~~~~~~~~~~
1209 | *ptr_body_size);
| ~~~~~~~~~~~~~~~
2024-05-24 21:08:10 +02:00
Sébastien Helleu
cb08919baf
relay/openapi: add note about websocket connection in sync endpoint
2024-05-19 15:49:37 +02:00
Sébastien Helleu
c67eb4e656
relay/openapi: remove example from description
2024-05-19 15:48:45 +02:00
Sébastien Helleu
9605501c66
relay/openapi: add complete description for authentication, add header "x-weechat-totp"
2024-05-19 15:31:16 +02:00
Sébastien Helleu
e9c14d6548
relay/openapi: replace "summary" by "description" in paths
2024-05-19 14:23:36 +02:00
Sébastien Helleu
44ca4b41f3
relay/remote: check that remote API is exactly the same version as local one upon connection
2024-05-19 11:26:50 +02:00
Sébastien Helleu
cc544e3e3a
relay/remote: fix error displayed when an error happens in a callback
2024-05-19 10:52:26 +02:00
Sébastien Helleu
8949a65f52
relay/remote: fix highlight on lines received from remote
2024-05-18 09:51:39 +02:00
Sébastien Helleu
839ffc4b0c
irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer
2024-05-16 08:23:28 +02:00
Sébastien Helleu
47f40f961a
relay/remote: add, update and remove buffer local variables received from remote
2024-05-16 07:45:02 +02:00
Sébastien Helleu
1100b0e694
relay/remote: set "input" and "input_pos" only upon buffer creation
...
This prevents unexpected updates of input on remote buffer whenever something
changes in the buffer, like a local variable, but with the same unchanged
input.
2024-05-16 07:22:24 +02:00
Sébastien Helleu
4c565413bb
relay/api: add OpenAPI document (issue #2066 )
2024-05-15 21:20:22 +02:00
Sébastien Helleu
484abc68fc
relay: add option "autoconnect" in remote
...
This option enables auto-connection to the remote, unless command line option
`-a` (`--no-connect`) is given.
2024-05-14 22:27:11 +02:00
Sébastien Helleu
878c0a5d66
irc: allow range in commands /unban and /unquiet ( closes #2113 )
2024-05-13 23:05:39 +02:00
Sébastien Helleu
8009b21803
irc: use dynamic string in function irc_command_mode_masks
2024-05-13 22:50:42 +02:00
Sébastien Helleu
8de2a36ac2
relay: add protocol "api" in completion of command "/relay add"
2024-05-12 22:16:14 +02:00
Sébastien Helleu
539a51f9e1
relay/api: add different return codes for callbacks
2024-05-12 22:11:41 +02:00
Sébastien Helleu
3aec35aeec
relay/remote: set modes on buffer event
2024-05-12 12:46:32 +02:00
Sébastien Helleu
3bfb7d7f04
relay/api: add field "modes" in GET /api/buffers
2024-05-12 12:46:32 +02:00
Sébastien Helleu
dcb8fcb6ed
irc: rename option irc.color.item_channel_modes to weechat.color.status_modes
2024-05-12 12:46:32 +02:00
Sébastien Helleu
fb4d2d30f4
irc: remove redefinition of bar item "buffer_modes"
...
The new buffer property "modes" is used instead.
2024-05-12 12:46:32 +02:00
Sébastien Helleu
c1083d022d
irc: restore input prompt after upgrade on server and channel buffers
2024-05-12 01:31:54 +02:00
Sébastien Helleu
77145d32ad
relay/remote: set input prompt on buffer event
2024-05-11 14:05:52 +02:00
Sébastien Helleu
cdeac1b693
relay/api: add field "input_prompt" in GET /api/buffers
2024-05-11 14:05:52 +02:00
Sébastien Helleu
827a056790
irc: remove redefinition of bar item "input_prompt"
...
The new buffer property "input_prompt" is used instead.
2024-05-11 14:05:52 +02:00
Sébastien Helleu
e69cffd9bc
irc: fix nick comparison in function irc_server_set_nick
2024-05-10 08:27:41 +02:00
Sébastien Helleu
5991278637
irc: rename function irc_server_buffer_set_input_multiline to irc_server_set_buffer_input_multiline
2024-05-09 15:55:31 +02:00