Sébastien Helleu
92dfd2425f
relay/remote: set buffer input and cursor position on buffer event
2024-05-07 21:38:24 +02:00
Ivan Pešić
be621205e9
doc: update Serbian translation
2024-05-07 18:59:40 +02:00
Ivan Pešić
4ad497ce01
core: update Serbian translation
2024-05-07 18:59:40 +02:00
Sébastien Helleu
da8353c54f
relay: change default value of option "relay.network.commands" to *,!quit
2024-05-07 13:58:31 +02:00
Sébastien Helleu
44c96f6abf
relay/remote: reuse an existing remote buffer
2024-05-05 23:57:46 +02:00
Sébastien Helleu
177b0a4299
relay/remote: synchronize input with remote relay
2024-05-05 23:57:02 +02:00
Sébastien Helleu
75270d7841
relay/api: add optional synchronization of input
2024-05-05 23:56:33 +02:00
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
9ceea3697b
relay/api: fix read of buffer lines when lines parameter is LONG_MIN
2024-05-05 17:49:20 +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
25e3a631b9
relay/api: reply to preflight request OPTIONS received from browsers (CORS)
...
This adds the support of Cross-Origin Resource Sharing (CORS) in the relay HTTP
API.
2024-05-05 11:08:37 +02:00
Sébastien Helleu
998bb89c98
relay/api: send all nicks when a buffer is opened
2024-05-04 13:58:01 +02:00
Sébastien Helleu
ccf23ae51e
relay/remote: run callback based on event name instead of body type
2024-05-04 13:43:03 +02:00
Sébastien Helleu
6321669cd5
relay/remote: clear remote buffer when event "buffer_cleared" is received
2024-05-04 12:35:10 +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
a21fa3359d
relay/remote: fix close of remote buffer
2024-05-04 11:40:49 +02:00
Sébastien Helleu
4ac120e435
relay/remote: fix alignment of variable in debug print to log file
2024-05-04 08:55:57 +02:00
Sébastien Helleu
b21b64bc44
relay/remote: do not display error if the buffer is not found in a line/nick event
2024-05-04 08:39:56 +02:00
Sébastien Helleu
68ff525d2e
relay/api: do not relay any signal received on a relay buffer
...
This fixes a creation of multiple fset buffers on remote when /fset is used on
the server.
2024-05-03 19:12:43 +02:00
Eli Schwartz
7e79dd92ba
core: conditionally declare variable only used in conditional code
...
Avoids emitting a compiler diagnostic by default for non-NLS builds for
-Wunused-variable.
2024-05-03 18:49:20 +02:00
Eli Schwartz
cefc6820c1
core: remove unused header
...
weechat.h already handles libintl.h and defining suitable macros.
Including it again does nothing other than emit a compile warning when
compiling without NLS:
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:35:
/var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/weechat.h:49: warning: "gettext" redefined
49 | #define gettext(string) (string)
|
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:30:
/usr/include/libintl.h:109: note: this is the location of the previous definition
109 | # define gettext(msgid) dgettext (NULL, msgid)
2024-05-03 18:49:20 +02:00
Sébastien Helleu
9f7b4c497e
core: remove unused variable "used"
2024-05-03 07:15:55 +02:00
Sébastien Helleu
d85205ca8a
irc: remove unneeded parameter in call to irc_list_alloc()
2024-05-03 07:12:34 +02:00
Sébastien Helleu
06d10ad193
core: fix prototype of function "resizeterm" in fake ncurses interface
2024-05-02 21:44:01 +02:00
Sébastien Helleu
8f86f319ca
relay: fix use of uninitialized variable "ptr_buffer"
2024-05-02 21:40:14 +02:00
Sébastien Helleu
fef2ecec9b
relay: remove unused variable "i"
2024-05-02 21:37:03 +02:00
Sébastien Helleu
cf42c7da38
alias: remove unused variable "args_count"
2024-05-02 21:34:50 +02:00
Nils Görs
9e6b9ca54d
core: update German translations
2024-05-02 07:42:53 +02:00
Krzysztof Korościk
d22c3344d4
doc: updated polish translation
2024-05-02 00:13:37 +02:00
Krzysztof Korościk
93064b8401
po: updated polish translation
2024-05-02 00:06:57 +02:00
Sébastien Helleu
573f1046ac
core: execute command as user data for local keys in buffer (issue #2066 )
...
If buffer->input_get_any_user_data is set to 1, any command executed via a
buffer local key is considered as user input and then sent to the buffer
callback, instead of being executed directly.
This is used on relay remote buffers, to execute the command on the remote
instead of locally.
2024-05-01 15:07:08 +02:00
Sébastien Helleu
3aeea2d6aa
relay/remote: set buffer local keys (issue #2066 )
2024-05-01 13:53:58 +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
c5268bc5f9
core: send signal "buffer_line_added" on buffers with free content (issue #2066 )
...
The signal "buffer_line_added" is now sent for every line added or modified on
a buffer with free content.
2024-05-01 13:37:49 +02:00
Sébastien Helleu
c47e4fa883
relay/remote: display lines on buffers with free content (issue #2066 )
2024-05-01 13:37:45 +02:00
Sébastien Helleu
6c1f21f10c
relay: add option relay.api.remote_get_lines (issue #2066 )
2024-05-01 10:10:36 +02:00
Sébastien Helleu
ee3fb67a0c
relay/api: add support of nicklist in remote buffers
2024-04-30 00:08:41 +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
f87347d44f
core: fix /upgrade from previous releases (issue #2106 )
...
When 4 directories are received, the state directory is initialized with the
data directory.
This fixes the following error on `/upgrade`:
Error: wrong number of paths for home directories (expected: 1 or 5, received: 4)
2024-04-28 20:19:45 +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
eac442a855
core: remove unnecessary condition in function gui_nicklist_get_group_start
2024-04-28 19:06:48 +02:00
Sébastien Helleu
f1fa143b21
core: check that parameter name is not NULL in function gui_nicklist_get_group_start
2024-04-28 19:06:21 +02:00
Sébastien Helleu
dcd872bc45
core: fix recursive search of group in nicklist
2024-04-28 13:07:08 +02:00