Sébastien Helleu
995cbe542e
relay/api: automatically disconnect when the command /upgrade is executed on the remote
2024-08-09 18:23:23 +02:00
Sébastien Helleu
6e775e4768
relay/api: close obsolete buffers when reconnecting to the remote
...
This closes all buffers that exist locally but not on the remote any more,
after reconnecting to the remote.
2024-08-09 18:08:31 +02:00
Sébastien Helleu
e5b6eab2f6
relay/api: do not reset input text on existing buffers when reconnecting to remote
2024-08-09 18:06:42 +02:00
Sébastien Helleu
c132adc52c
relay/api: fix buffers synchronization with existing buffers that have been renamed on remote in the meanwhile ( closes #2169 )
2024-08-09 18:04:10 +02:00
Sébastien Helleu
78f0a3e087
relay/api: replace calls to strcmp by weechat_strcmp
2024-08-09 18:02:42 +02:00
Sébastien Helleu
eb5399518e
relay/api: clear lines and nicklist on all remote buffers upon successful connection to the remote ( closes #2161 )
2024-08-09 18:01:59 +02:00
Sébastien Helleu
5fe3b38892
irc: convert server option ipv6 from boolean to enum (disable, auto, force) (issue #2164 )
2024-08-06 08:25:42 +02:00
Sébastien Helleu
e051af0376
api: add constants for IPv6 and allow force of IPv6 in function hook_connect (issue #2164 )
2024-08-06 08:25:42 +02:00
Sébastien Helleu
ab2bcbac4e
doc/plugin: fix Python example of function hook_connect
2024-07-27 09:47:03 +02:00
Sébastien Helleu
8c48b2f310
relay/api: fix connection to remote using an IPv6 address with square brackets ( closes #2156 )
2024-07-22 17:24:50 +02:00
Sébastien Helleu
9ece7b4d8c
core, plugins: fix typo in comments
2024-07-22 11:49:26 +02:00
Sébastien Helleu
cadd04693a
irc: add support of message 569 (whois, connecting from) ( closes #2162 )
2024-07-22 10:39:03 +02:00
miko
e4e0b9764d
plugins: refactor macro weechat_va_format with the same behavior as string_asprintf
2024-07-21 11:34:02 +02:00
Sébastien Helleu
d3ca619526
relay/api: fix connection to remote without password ( closes #2158 )
2024-07-20 16:26:53 +02:00
Sébastien Helleu
fc197df056
relay/api: allow clients without authentication when no relay password is defined and option relay.network.allow_empty_password is on (issue #2158 )
2024-07-20 15:57:56 +02:00
Sébastien Helleu
66707dbdf9
relay: add option reconnect in command /remote ( closes #2160 )
2024-07-19 09:19:34 +02:00
Sébastien Helleu
b316a7a0c6
script: add info "script_info"
2024-07-17 22:38:47 +02:00
Sébastien Helleu
c486a4f60a
relay: fix crash when sending data to a remote buffer when the remote has been deleted ( closes #2157 )
2024-07-16 23:51:46 +02:00
Sébastien Helleu
40b074c6d6
ruby: fix crash in plugin initialization ( closes #2163 )
...
This regression was introduced by commit
701f64afc1 .
2024-07-15 09:39:54 +02:00
Sébastien Helleu
a957266279
relay: translate connection status in output of commands /relay list and /relay listfull
2024-07-13 10:33:06 +02:00
Sébastien Helleu
2d534aed68
relay: display connection status in output of commands /remote list and /remote listfull
2024-07-13 10:32:56 +02:00
Eric Lalonde
5bd581f8cf
irc: fix lag check interval comment
...
The network lag check interval is stored in irc_config_network_lag_check, which does not default to 5 seconds.
2024-07-08 21:59:49 +02:00
Sébastien Helleu
8e2275cebc
relay/api: fix timezone of dates sent to clients ( closes #2151 )
2024-07-08 19:10:27 +02:00
Sébastien Helleu
7e73da310e
relay/api: remove unused macro MSG_ADD_HDATA_TIME (issue #2151 )
2024-07-08 19:08:41 +02:00
Sébastien Helleu
a75db3488d
relay/api: allow body type "buffers" in remote client
2024-07-08 18:16:56 +02:00
Sébastien Helleu
9d98dee7d9
spell: improve error displayed when a word can not be added to the dictionary ( closes #2144 )
2024-07-06 11:57:26 +02:00
Sébastien Helleu
06685b6e68
core: add info "window" ( closes #2141 )
2024-07-01 21:23:36 +02:00
Sébastien Helleu
cac5717b41
relay/api: add body types buffers and lines (array)
2024-06-30 13:01:29 +02:00
Sébastien Helleu
8f13a9cff0
relay/api: fix "body_type" returned when lines or nicks of a buffer are requested
...
The "body_type" returned is now this one, instead of "buffer":
- `GET /api/buffers/xxx/lines`: "line"
- `GET /api/buffers/xxx/nicks`: "nick_group"
2024-06-30 00:36:29 +02:00
Sébastien Helleu
270a822f41
relay/api: bump version in OpenAPI document
2024-06-30 00:15:25 +02:00
Sébastien Helleu
259615d436
relay/api: add field "request_id" in websocket frame (request and response)
2024-06-30 00:11:29 +02:00
Sébastien Helleu
1cacbde6b7
relay: remove check of NULL pointers before calling free functions
2024-06-30 00:11:00 +02:00
Sébastien Helleu
f8f6e100d0
relay/api: always set "body_type" and "body" (null if there is no body) in websocket frame
2024-06-29 23:59:59 +02:00
Sébastien Helleu
2184af9d99
relay: flatten JSON event object sent to api relay clients
2024-06-29 19:48:34 +02:00
Sébastien Helleu
701f64afc1
ruby: fix builtin functions not available ( closes #2109 )
2024-06-29 07:59:06 +02:00
Sébastien Helleu
3993aa310f
relay: send event "buffer_line_data_changed" to clients of "weechat" protocol
2024-06-27 22:21:09 +02:00
Sébastien Helleu
7d6afff01c
relay: add line id in buffer lines sent to clients with weechat protocol
2024-06-27 22:12:34 +02:00
Sébastien Helleu
555632b615
relay/remote: update buffer line on event "buffer_line_data_changed"
2024-06-27 21:39:21 +02:00
Sébastien Helleu
d5975c96e9
relay: send event "buffer_line_data_changed" to API clients
2024-06-27 21:37:47 +02:00
Sébastien Helleu
b04e1ffd27
relay: fix read of one buffer line in API protocol
2024-06-27 20:55:42 +02:00
Sébastien Helleu
f076db4767
api: add function line_search_by_id
2024-06-27 20:55:42 +02:00
Sébastien Helleu
85c7494dc7
python: call empty eval workaround before auto-load of scripts (issue #2046 , issue #2126 )
...
This should definitely fix the crash with Python 3.12, even when scripts are
auto-loaded (the previous fix was working only when the scripts are loaded
manually).
2024-06-26 18:44:35 +02:00
Sébastien Helleu
3d3d8f2ea7
scripts: fix reset of "quiet" status in case of nested calls (issue #2046 , issue #2126 )
2024-06-26 18:43:40 +02:00
Trygve Aaberge
830b152776
python: unload script interpreters before eval interpreter
...
The workaround in the previous commit didn't work for one user, so try
unloading the eval interpreter last to see if that helps.
2024-06-23 18:40:18 +02:00
Trygve Aaberge
c325dedf05
python: add workaround for crash on unload with Python 3.12
...
Python 3.12 has a bug where it crashes when you unload all the
interpreters unless you make sure to unload the first interpreter you
loaded last. For some reason, loading the eval interpreter before any
scripts also seems to prevent the issue, even if the eval interpreter is
unloaded before the other interpreters.
So this just evals an empty string at the end of initing the Python
plugin if the Python version is 3.12, to make sure the eval interpreter
is loaded first.
Fixes #2046
2024-06-23 18:40:18 +02:00
Sébastien Helleu
bdfa1bd51c
core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
...
This is a partial revert of the commit
965beb37de .
2024-06-22 08:54:08 +02:00
Sébastien Helleu
a75a947f5f
irc: fix apply of custom buffer property "short_name" when a channel buffer is renamed
2024-06-19 21:43:08 +02:00
Sébastien Helleu
7cd8312bf9
irc: fix property "short_name" of channel buffer when the joined channel has a different case than the /join command
2024-06-19 20:52:02 +02:00
Sébastien Helleu
1fcf5ac5b3
core, plugins: force "short_name" in buffers to non-empty value (name by default), remove buffer property "short_name_is_set"
2024-06-18 20:34:58 +02:00
Sébastien Helleu
36ca300b8d
Revert "core: replace "%lx" by "%p" in function relay_weechat_msg_add_pointer"
...
This reverts commit 8923ecc7d8 .
2024-06-16 10:16:51 +02:00