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
464b019929
core: restore buffer input prompt on /upgrade
2024-05-12 01:31:54 +02:00
Sébastien Helleu
1a0b9427e0
core: fix conversion of WeeChat bar colors to ANSI colors
2024-05-11 14:05:52 +02:00
Sébastien Helleu
32b01a606c
core: fix conversion of WeeChat "default" color to ANSI color
2024-05-11 14:05:52 +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
7634774327
core: add buffer property "input_prompt"
2024-05-10 08:54:03 +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
Sébastien Helleu
1a8c40826e
core: refresh buffer only if nicklist_display_groups has changed
2024-05-08 13:29:12 +02:00
Sébastien Helleu
d14bc12282
core: refresh buffer only if nicklist has changed
2024-05-08 13:28:47 +02:00
Sébastien Helleu
0c9bbb5d4f
core: refresh buffer only if time_for_each_line has changed
2024-05-08 13:28:24 +02:00
Sébastien Helleu
df52b57c33
core: add function gui_buffer_set_filter
2024-05-08 13:23:50 +02:00
Sébastien Helleu
7addd1bf00
core: add function gui_buffer_set_input
2024-05-08 13:19:40 +02:00
Sébastien Helleu
1050ba851f
core: fix buffer title comparison in function gui_buffer_set_title
2024-05-08 12:50:08 +02:00
Sébastien Helleu
103684b15e
core: merge conditions in function gui_buffer_set_type
2024-05-08 12:49:17 +02:00
Sébastien Helleu
7546ee08ca
core: fix buffer short name comparison in function gui_buffer_set_short_name
2024-05-08 12:48:21 +02:00
Sébastien Helleu
1aeea38355
core: fix buffer name comparison in function gui_buffer_set_name
2024-05-08 12:09:26 +02:00
Sébastien Helleu
9ce666fc31
core: check that buffer is not NULL in function gui_input_set_pos
2024-05-08 12:08:50 +02:00
Sébastien Helleu
b2c7682242
core: add function gui_buffer_set_notify
2024-05-08 12:08:50 +02:00
Sébastien Helleu
2aa1b950cd
core: add function gui_buffer_set_day_change
2024-05-08 12:08:50 +02:00
Sébastien Helleu
9f536d3dc7
api: return -1 or 1 if one input string is NULL and not the other in string comparison functions
2024-05-08 09:30:20 +02:00
Sébastien Helleu
4d0458afdd
relay/remote: set input multiline on buffer event
2024-05-07 21:38:43 +02:00
Sébastien Helleu
92dfd2425f
relay/remote: set buffer input and cursor position on buffer event
2024-05-07 21:38:24 +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
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
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
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