Sébastien Helleu
498194f6fc
relay: add zstd compression in weechat protocol
...
Option relay.network.compression_level is renamed to relay.network.compression
and is now a percentage between 0 (no compression) to 100 (best compression,
slowest).
Compression is now disabled by default in weechat protocol and must be enabled
via the `handshake` command (option `compression` has been removed from `init`
command).
2021-12-24 16:45:57 +01:00
Sébastien Helleu
67a364550f
core: fix typo in weechat --help
2021-12-03 12:03:08 +01:00
Sébastien Helleu
50edb33f1c
core: speed up eval by storing length of prefix/suffix in eval structure
2021-11-13 15:18:49 +01:00
Sébastien Helleu
c82358c17c
core: free strings with XDG directories in case of error
2021-11-13 14:59:14 +01:00
Sébastien Helleu
1556e4ac5a
core: fix memory leak in evaluated expression "split:number,seps,flags,xxx" when multiple "strip_items" are given
2021-11-13 13:29:32 +01:00
Sébastien Helleu
253b25db03
core: fix random integer number with large range in evaluation of expressions on GNU/Hurd
2021-11-07 20:16:26 +01:00
Sébastien Helleu
2da2172593
api: add parameters pointers, extra_vars and options in function hdata_search
2021-11-06 15:59:18 +01:00
Sébastien Helleu
5e08f9876a
core: fix access to integer/long/time arrays in hdata, add support of static arrays in hdata
2021-11-04 23:55:02 +01:00
Sébastien Helleu
ee66fc3a85
core: fix crash in function hdata_set when pointer value is NULL in hashtable
2021-11-03 23:54:12 +01:00
Sébastien Helleu
13472adfff
core: check that time is valid in function hdata_set
2021-11-03 23:23:09 +01:00
Sébastien Helleu
60b374901f
core: remove useless test in function hdata_update
2021-11-03 23:02:01 +01:00
Sébastien Helleu
d8a3a0137c
core: check that hdata and name are not NULL in function hdata_compare
2021-11-02 21:08:24 +01:00
Sébastien Helleu
f66e55564e
core: check that name is not NULL in function hdata_get_var
2021-11-01 22:16:50 +01:00
Sébastien Helleu
6e83225e6f
core: use a "free value" callback in hashtable weechat_hdata
2021-10-29 22:13:53 +02:00
Sébastien Helleu
ad5fa7c99f
core: add command /toggle
2021-10-01 22:55:38 +02:00
Sébastien Helleu
9548a4cf74
core: check that option is not NULL in function config_file_option_value_to_string
2021-09-27 23:23:01 +02:00
Sébastien Helleu
301f0942c6
core: fix search of option when the section is not given
2021-09-27 22:35:14 +02:00
Sébastien Helleu
fb57ad147e
core: check that option_name is not NULL in config file functions
2021-09-27 22:02:22 +02:00
Sébastien Helleu
a6826af796
core: add creation of user variables in evaluated expressions with ${define:name,value}
2021-09-20 21:15:28 +02:00
Sébastien Helleu
f3fc1f5f85
core: remove empty line displayed in output of /plugin list <name>
2021-09-10 23:06:05 +02:00
Sébastien Helleu
91d32be93c
core: add options "-o", "-ol", "-i" and "-il" in command "/plugin list"
2021-09-09 21:32:58 +02:00
Sébastien Helleu
7d1b557627
core: fix indentation in examples of /help eval
2021-09-06 22:39:29 +02:00
Sébastien Helleu
5b3929b321
api: add split of string and shell arguments in evaluation of expressions
...
Split of string: ${split:number,separators,flags,xxx}
Split of shell arguments: ${split_shell:number,xxx}
2021-09-06 13:32:04 +02:00
Sébastien Helleu
12be3b8c33
core: add options in command /input and new keys to remove/restore buffers in hotlist
...
New options in command /input:
- hotlist_remove_buffer
- hotlist_restore_buffer
- hotlist_restore_all
New keys:
- alt+h, alt+c: clear the whole hotlist (former key: alt+h)
- alt+h, alt+m: mark the current buffer as read by removing it from the hotlist
- alt+h, alt+r: restore latest hotlist removed in the current buffer
- alt+h, alt+shift+R: restore latest hotlist removed in all buffers
2021-08-31 22:32:38 +02:00
Sébastien Helleu
2de272ee6c
api: add "${re:repl_index}" to get the index of replacement in function string_eval_expression
2021-08-29 10:40:52 +02:00
Sébastien Helleu
d89c4f559c
api: add random integer number in evaluation of expressions with "random:min,max"
2021-08-03 19:46:41 +02:00
Sébastien Helleu
dccf605e66
typing: add typing plugin
2021-07-04 13:27:32 +02:00
Sébastien Helleu
b585ec09f8
core: fix number of bytes read in function dir_file_copy
2021-07-03 16:50:30 +02:00
Sébastien Helleu
8a11a18dc5
api: add function file_copy (issue #1667 )
2021-07-03 16:04:50 +02:00
Sébastien Helleu
e84a3676f6
core: add note about buffers that are not opened in /help layout
2021-06-27 10:35:04 +02:00
Sébastien Helleu
a48a615613
api: remember insertion order in hashtables
2021-06-26 21:37:02 +02:00
Sébastien Helleu
b3b4ef648b
core: fix use of uninitialized hash when call to weecrypto_hmac fails
2021-06-23 20:46:53 +02:00
Sébastien Helleu
60b9e36ae2
core: fix function string_match with joker in the string if multiple words matched in input string
...
Before fix:
string_match("script.color.text_description", "*script*color*", 0) => 0
After fix:
string_match("script.color.text_description", "*script*color*", 0) => 1
2021-06-22 21:54:16 +02:00
Sébastien Helleu
2225ac4e56
core: add option "certs" in command /debug
2021-06-17 21:51:18 +02:00
Sébastien Helleu
0b7e4977be
core: fix build on macOS ( closes #1662 )
2021-06-16 12:34:14 +02:00
Sébastien Helleu
5cffb7179f
api: add function crypto_hmac (issue #1628 )
2021-06-01 20:39:04 +02:00
Sébastien Helleu
b21589944e
core, irc, script: fix typos
2021-05-29 14:33:13 +02:00
Sébastien Helleu
7cc61cdbb3
core: replace freenode by libera in command examples
2021-05-25 18:44:10 +02:00
Sébastien Helleu
e5f58b77c1
core, buflist, irc, relay: replace freenode by libera in comments
2021-05-25 13:39:55 +02:00
Sébastien Helleu
d949ebb088
core: split signal command before evaluating it (issue #1643 )
2021-05-22 08:52:46 +02:00
Sébastien Helleu
b74af1d2da
core: split startup command before evaluating it (issue #1643 )
2021-05-22 08:51:38 +02:00
Sébastien Helleu
4065972000
core: fix tests when NLS is disabled
2021-05-21 13:51:47 +02:00
Giuseppe Bilotta
916f57f31d
core: fix build error if ENABLE_NLS is OFF
...
wee-eval.c calls gettext directly, but gettext is not a function if
ENABLE_NLS is off. Fix by defining a gettext macro (that expands to its
first argument) if NLS support is disabled.
2021-05-21 13:22:05 +02:00
Sébastien Helleu
89e43eaf40
core: set server name when connecting to server with TLS (SNI extension) only if it's not an IPV4/IPv6 ( closes #1635 )
2021-05-16 14:52:11 +02:00
Sébastien Helleu
5bce484c01
api: add translated string in evaluation of expressions with "translate:xxx" (issue #1622 )
2021-05-16 10:01:03 +02:00
Sébastien Helleu
c588ee21bc
core: improve options to load GnuTLS system/user CAs ( closes #972 )
...
Changes:
* new option: weechat.network.gnutls_ca_system
* option weechat.network.gnutls_ca_file renamed to
weechat.network.gnutls_ca_user
* reload certificates when options are changed
* remove build option CA_FILE
2021-05-12 20:39:40 +02:00
Sébastien Helleu
be575e5400
core: update translations (issue #1285 )
2021-05-11 21:39:46 +02:00
Sébastien Helleu
70cdf21681
doc: add XDG directories support in docs (issue #1285 )
2021-05-11 21:07:30 +02:00
Sébastien Helleu
d2c5bba356
core: change default value of option weechat.plugin.path to "${weechat_data_dir}/plugins" (issue #1285 )
2021-05-11 21:06:42 +02:00
Sébastien Helleu
0f9640a5f3
core: split WeeChat home in 4 directories, use XDG directories by default (issue #1285 )
...
The 4 directories (which can be the same):
- config: configuration files, certificates
- data: log/upgrade files, local plugins, scripts, xfer files
- cache: script repository, scripts downloaded (temporary location)
- runtime: FIFO pipe, relay UNIX sockets
2021-05-11 21:06:34 +02:00