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
Sébastien Helleu
740aa49271
irc: rename parameter -re to -raw in command /list ( closes #2124 )
2024-06-16 09:15:03 +02:00
Sébastien Helleu
8923ecc7d8
core: replace "%lx" by "%p" in function relay_weechat_msg_add_pointer
2024-06-14 18:10:45 +02:00
Sébastien Helleu
f8d98bbd5e
core: replace "%lx" by "%p" in dump of relay data
2024-06-14 18:10:18 +02:00
Sébastien Helleu
d0830b9255
relay: fix dump of variable "websocket_key"
2024-06-14 18:09:53 +02:00
Sébastien Helleu
e64ab3c675
core, plugins: replace "%lx" by "%p" in calls to sscanf
2024-06-14 17:59:02 +02:00
Sébastien Helleu
70417a1ac6
api: add hashtable type "longlong"
2024-06-10 23:55:34 +02:00
Sébastien Helleu
26c01e30c3
core, plugins: remove unneeded break after return
2024-06-10 15:10:25 +02:00
Sébastien Helleu
3ee5341fbc
perl: use lower case for CMake keywords
2024-06-10 09:01:27 +02:00
Sébastien Helleu
39cb0942a2
perl: fix quote of variable PERL_LFLAGS in CMake file
2024-06-10 08:59:36 +02:00
Sébastien Helleu
920d06bd27
core, plugins: fix return code of command callbacks in case of error
2024-06-10 08:17:25 +02:00
Sébastien Helleu
b0f0afd7fa
fset: fix typo in /help fset
2024-06-09 23:16:32 +02:00
Sébastien Helleu
8824ff7d6c
irc: add option -export in command /list, add option irc.look.list_buffer_format_export
2024-06-09 23:15:26 +02:00
Sébastien Helleu
fb86ddc770
irc: clear /list buffer when disconnecting from server ( closes #2133 )
2024-06-09 18:35:22 +02:00
Sébastien Helleu
d63553a73d
irc: display an explicit message on /list buffer when the list of channels is empty (issue #2133 )
2024-06-09 18:34:35 +02:00
Sébastien Helleu
85c8866407
relay: add option addreplace in command /remote (issue #2095 )
2024-06-09 16:58:37 +02:00
Sébastien Helleu
337c9c840d
relay: add option addreplace in command /relay (issue #2095 )
2024-06-09 16:58:25 +02:00
Sébastien Helleu
eaead31b11
irc: add option addreplace in command /server (issue #2095 )
2024-06-09 16:58:12 +02:00
Sébastien Helleu
a8525b41b3
irc: add option addreplace in command /notify (issue #2095 )
2024-06-09 16:58:00 +02:00
Sébastien Helleu
b7d2bd5c9e
irc: add option addreplace in command /ignore (issue #2095 )
2024-06-09 16:57:44 +02:00
Sébastien Helleu
e06e4d1457
core, plugins: use variable "argv" in calls to macro COMMAND_MIN_ARGS
2024-06-09 10:53:05 +02:00
Sébastien Helleu
6499d77e1d
alias: add options addreplace and addreplacecompletion in command /alias (issue #2095 )
...
The commands `/alias add` and `/alias addcompletion` now return an error if the
alias already exists.
2024-06-09 10:15:44 +02:00
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