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
e350437c81
irc: split server command before evaluating it (issue #1643 )
2021-05-22 08:48:24 +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
b43958ac92
irc: use constant GNUTLS_TLS1_3 only with GnuTLS >= 3.6.3
...
This constant was introduced in GnuTLS 3.6.3.
This fixes a build error on these old distributions:
- Debian Stretch
- Debian Jessie
- Ubuntu Bionic
- Ubuntu Xenial
2021-05-17 12:59:41 +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
92410e9949
irc: sort config options alphabetically (issue #1622 )
2021-05-16 10:01:14 +02:00
Sébastien Helleu
e6a3d08704
buflist, irc, xfer: do not translate "cleartext" in buffer local variable "tls_version" (issue #1622 )
...
The text "cleartext" is translated for display only: directly with gettext in
IRC plugin and with "${translate:${tls_version}}" in the buflist evaluated
format.
2021-05-16 10:01:07 +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
7e10038f4b
core: update translations (issue #1622 )
2021-05-16 10:00:57 +02:00
Andrew Potter
94c902adfc
irc, buflist: add bar item "tls_version" with options for colors, add buflist format "${format_tls_version}" (issue #1622 )
2021-05-16 10:00:30 +02:00
Sébastien Helleu
13cb870b9a
core: add generator and Python stub file for WeeChat API (issue #1377 )
2021-05-14 19:19:45 +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
a9e210121b
fifo: add PID in default FIFO pipe filename (issue #1285 )
...
This is to prevent two WeeChat using the same runtime directory to use the same
FIFO pipe.
2021-05-11 21:07:39 +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
43ba8d3b73
xfer: remove "%h" from /help xfer.file.upload_path (issue #1285 )
2021-05-11 21:07:02 +02:00
Sébastien Helleu
6170f97cd6
xfer: change default value of option xfer.file.download_path to "${weechat_data_dir}/xfer" (issue #1285 )
2021-05-11 21:07:00 +02:00
Sébastien Helleu
19bf10647c
script: change default value of option script.scripts.path to "${weechat_cache_dir}/script" (issue #1285 )
2021-05-11 21:06:58 +02:00
Sébastien Helleu
4459119409
relay: change default value of option relay.network.ssl_cert_key to "${weechat_config_dir}/ssl/relay.pem" (issue #1285 )
2021-05-11 21:06:56 +02:00
Sébastien Helleu
047a668275
relay: remove "%h" from help on UNIX socket path option (issue #1285 )
2021-05-11 21:06:54 +02:00
Sébastien Helleu
36847bd305
relay: remove "%h" from /help relay (issue #1285 )
2021-05-11 21:06:51 +02:00
Sébastien Helleu
005ef8a4a9
logger: change default value of option logger.file.path to "${weechat_data_dir}/logs" (issue #1285 )
2021-05-11 21:06:49 +02:00
Sébastien Helleu
7e79145d46
fifo: change default value of option fifo.file.path to "${weechat_runtime_dir}/weechat_fifo" (issue #1285 )
2021-05-11 21:06:46 +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
Sébastien Helleu
4c5fcb743b
core: move home directory functions from weechat.c to wee-dir.c (issue #1285 )
2021-05-11 21:06:32 +02:00
Sébastien Helleu
269576eea2
core: move directory/file functions from wee-util.c to wee-dir.c (issue #1285 )
2021-05-11 21:06:29 +02:00
Sébastien Helleu
9eecad496d
logger: remove unused variable weechat_dir (issue #1285 )
2021-05-11 21:06:27 +02:00
Sébastien Helleu
5361722699
core: set WeeChat home to empty string by default in CMake and autotools (issue #1285 )
2021-05-11 21:06:24 +02:00
Sébastien Helleu
e07221d7c5
relay: evaluate option relay.network.ssl_cert_key (issue #1285 )
2021-05-11 21:06:22 +02:00
Sébastien Helleu
39b629550b
irc: evaluate options irc.server_default.ssl_cert and irc.server.xxx.ssl_cert (issue #1285 )
2021-05-11 21:06:19 +02:00
Sébastien Helleu
d7d594873b
irc: evaluate options irc.server_default.sasl_key and irc.server.xxx.sasl_key (issue #1285 )
2021-05-11 21:06:17 +02:00
Sébastien Helleu
f923524a21
core: evaluate option weechat.plugin.path (issue #1285 )
2021-05-11 21:06:13 +02:00
Sébastien Helleu
e5d18e1221
core: evaluate option weechat.network.gnutls_ca_file (issue #1285 )
2021-05-11 21:05:42 +02:00
Andrew Potter
b222e75019
core: Use mallinfo2() when available
...
mallinfo() is deprecated in glibc 2.33
2021-05-08 07:25:44 +02:00
Sébastien Helleu
e95fdc3a0a
core: display a warning when the file with certificate authorities is not found (option weechat.network.gnutls_ca_file)
2021-05-04 20:37:15 +02:00
Sébastien Helleu
9f0e7fb47e
xfer: make file transfer fail when option xfer.file.auto_rename is off and file already exists ( closes #1633 )
2021-04-26 20:51:17 +02:00
Sébastien Helleu
6b62456119
Revert "core: add option "-save" in command /upgrade ( closes #1630 )"
...
This reverts commit 1df1903d23 .
This is not so easy to implement: it requires saving state of plugins, and
plugins like irc can not save the connected state (except in a real upgrade
case where the sockets are still valid after exec of the new binary).
2021-04-13 00:11:11 +02:00
Sébastien Helleu
1df1903d23
core: add option "-save" in command /upgrade ( closes #1630 )
2021-04-12 20:48:32 +02:00
Sébastien Helleu
5d30e0faac
doc: mark info "python2_bin" as deprecated since version 2.6 (plugin API reference)
2021-04-11 09:31:49 +02:00
Sébastien Helleu
1f0636bab6
irc: remove unused variable ptr_address and dead code
2021-04-10 14:11:11 +02:00
Sébastien Helleu
7bd23700de
irc: remove dead assignment on variable pos_message
2021-04-10 13:26:46 +02:00
Sébastien Helleu
937ecb62c4
trigger: remove useless test
2021-04-10 12:21:16 +02:00
Sébastien Helleu
2e67b13edd
trigger: check that option is not NULL in function trigger_search_with_option
2021-04-09 21:36:12 +02:00
Sébastien Helleu
7c5cbefd51
trigger: fix description of function trigger_name_valid
2021-04-08 20:56:37 +02:00
Sébastien Helleu
b6b78df3d2
trigger: check that trigger is not NULL in functions trigger_rename and trigger_copy
2021-04-08 20:55:37 +02:00
Sébastien Helleu
fae9bdf8f8
trigger: add variables "${tg_shell_argc}" and "${tg_shell_argvN}" in command trigger evaluated strings ( closes #1624 )
2021-04-06 18:37:22 +02:00
Sébastien Helleu
3bf585ba04
core: evaluate left/right part of comparison after split on the comparison operator in ${if:xxx} ( closes #1627 )
...
To force evaluation of the expression before doing the comparison (less safe),
the "${eval_cond:xxx}" can be used.
With the old behavior we had:
>> ${if:a==b}
== [0]
>> ${if:${raw:a==b}}
== [0]
>> ${if:${eval_cond:${raw:a==b}}}
== [0]
And with the new behavior, we have:
>> ${if:a==b}
== [0]
>> ${if:${raw:a==b}}
== [1]
>> ${if:${eval_cond:${raw:a==b}}}
== [0]
2021-04-04 14:44:18 +02:00