Sébastien Helleu
c943d3507f
python: add function buffer_new_props in Python stub file
2022-03-13 14:07:22 +01:00
Sébastien Helleu
e5e3a9d2da
api: add function buffer_new_props ( closes #1759 )
2022-03-13 10:35:29 +01:00
Trygve Aaberge
197a7a01e4
scripts: allow null values in config_new_option
...
The plugin API function config_new_option accepts null as the
default_value and/or value however the scripting APIs (except for lua)
didn't allow sending null as a parameter value, so it was impossible to
use it this way. This allows sending a null value for these parameters.
Lua already supported sending in nil for these parameters and it works
as expected, so nothing is changed for this plugin.
For Guile you can now send in #nil, for JavaScript null or undefined,
for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl
$::weechat::WEECHAT_NULL.
In all of these languages except Tcl this is the special value
indicating a missing value. However Tcl only has one type, string, so it
doesn't have a null value. Therefore I created a constant with the value
`\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used
instead. This is very unlikely to appear unintentionally. Using the
unicode code point \uFFFF was suggested on
https://wiki.tcl-lang.org/page/null .
I tested this with these scripts:
https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc
2022-03-12 16:00:38 +01:00
Sébastien Helleu
3f9c46468c
irc: add option "sort" in command /autojoin
2022-03-11 19:31:56 +01:00
Sébastien Helleu
aadd0772fe
irc: update translations
2022-03-10 21:26:26 +01:00
Sébastien Helleu
bb03e18425
irc: display only one message in /autojoin command output
2022-03-10 21:12:46 +01:00
Sébastien Helleu
02bdf854bc
irc: fix add of same channel with and without key in the array list
2022-03-10 21:12:46 +01:00
Sébastien Helleu
8c66070136
irc: rename server option "autojoin_record" to "autojoin_dynamic"
2022-03-10 21:12:46 +01:00
Sébastien Helleu
9cfdb4a324
irc: add command /autojoin
2022-03-10 21:12:46 +01:00
Sébastien Helleu
c1e65e8edd
irc: add server option "autojoin_record"
2022-03-10 21:12:46 +01:00
Sébastien Helleu
d06f1e8486
guile: remove disabling of guile gmp allocator with Guile ≥ 3.0.8
...
This fixes the compilation warning:
weechat-guile.c: In function ‘weechat_plugin_init’:
weechat-guile.c:1270:5: warning: ‘scm_install_gmp_memory_functions’ is deprecated [-Wdeprecated-declarations]
2022-03-06 16:42:54 +01:00
Sébastien Helleu
7228262591
irc: fix display of message 901 (you are now logged out) ( closes #1758 )
2022-02-28 22:12:22 +01:00
Sébastien Helleu
7486ea6dc1
logger: split function logger_backlog into two functions
2022-02-21 20:16:43 +01:00
Trygve Aaberge
d359e8135e
doc/api: Add missing parameter to python prototype for config_new_section
2022-02-20 16:49:04 +01:00
Sébastien Helleu
8700e0bb36
scripts: auto-load scripts with supported extensions only ( closes #1698 )
2022-02-20 16:29:31 +01:00
Sébastien Helleu
f39c6a58d0
irc: replace calls to strndup by weechat_strndup
2022-02-19 16:34:36 +01:00
Sébastien Helleu
a2bb57bf82
doc/api: add missing type for argument "count" in Python prototype of function ngettext
2022-02-14 07:25:22 +01:00
Sébastien Helleu
ba7ff87d19
irc: fix parsing of message 223 (m_filter) sent by InspIRCd server ( closes #1751 )
2022-02-10 20:50:16 +01:00
Sébastien Helleu
9259442dbf
core: add support of date and tags in messages displayed in buffers with free content, add function printf_y_date_tags ( closes #1746 )
2022-01-30 11:41:06 +01:00
Sébastien Helleu
bf3241208b
doc/api: fix type of parameter "date" in script prototype of function prnt_date_tags
2022-01-30 11:01:17 +01:00
Sébastien Helleu
574f1837f9
python: fix crash in hook callbacks after script loading failure ( closes #1740 )
2022-01-22 21:34:04 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
619f09f2d6
xfer: fix auto-accept of server/nick when the server name contains UTF-8 chars (issue #1739 )
2022-01-15 10:04:43 +01:00
Sébastien Helleu
e6f65122a9
spell: fix comparison of URL prefix with UTF-8 chars (issue #1739 )
...
There is no problem in practice because the possible URL prefixes are hardcoded
in the spell plugin and don't contain any UTF-8 char on more than one byte.
2022-01-15 10:04:12 +01:00
Sébastien Helleu
50167ca96f
relay: fix comparison of server nonce with UTF-8 chars (issue #1739 )
...
There is no problem in practice because this server nonce is generated by
WeeChat itself and encoded to base64, so it never contains any UTF-8 char on
more than one byte.
2022-01-15 10:03:54 +01:00
Sébastien Helleu
b54d06630d
irc: fix completion of channel topic with UTF-8 chars (issue #1739 )
2022-01-15 09:52:23 +01:00
Sébastien Helleu
dee7313fcc
trigger: fix search of triggers with UTF-8 chars in name (issue #1739 )
2022-01-15 09:36:02 +01:00
Sébastien Helleu
9bbab7ff02
irc: use default callback in case of missing parameters in messages 311/312/327 (whois) and 314 (whowas)
2022-01-06 08:14:11 +01:00
Sébastien Helleu
6670fd2a87
irc: add macro to run another protocol callback
2022-01-06 08:10:44 +01:00
Sébastien Helleu
0d6b18bc54
irc: fix parsing of message 338 (whois, host) sent by Rizon server ( closes #1737 )
2022-01-05 08:24:04 +01:00
Sébastien Helleu
8c49475f75
irc: fix display of message 344 received as whois geo info ( closes #1736 )
2022-01-04 19:53:48 +01:00
Sébastien Helleu
532d46bb93
trigger: add variables ${tg_tag_irc_xxx} containing IRC message tags (issue #1680 )
2021-12-30 21:22:37 +01:00
Sébastien Helleu
b66298d369
irc: add IRC message tags in messages displayed ( closes #1680 )
2021-12-30 21:11:22 +01:00
Sébastien Helleu
c8a8680d60
relay: improve help on option relay.network.compression
2021-12-25 10:44:00 +01:00
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
d5c391b1ee
irc: fix display of IRC numeric messages with no parameters
...
For example this MOTD message is properly displayed (empty line):
:server.example.com 372 nick :
2021-12-23 18:43:12 +01:00
Sébastien Helleu
be753046b7
core: fix detection of Ruby 3.0 on macOS (issue #1721 )
2021-11-21 16:38:22 +01:00
Sébastien Helleu
006964c4dc
irc: fix memory leak in case of realloc error
2021-11-20 13:21:51 +01:00
Sébastien Helleu
05d31b476b
trigger: hide key and password in command "/msg nickserv setpass nick key password"
2021-11-13 15:41:31 +01:00
Sébastien Helleu
d64050bafb
relay: remove dead assignment in websocket decoding
2021-11-13 13:32:02 +01:00
Sébastien Helleu
a3924a27a0
tests: add tests on some IRC SASL functions
2021-11-13 09:06:34 +01:00
Sébastien Helleu
7cad1230e6
trigger: add comments with list of all commands in default triggers
2021-11-12 21:20:14 +01:00
Sébastien Helleu
997559e55b
trigger: split default triggers on multiple lines
2021-11-12 21:08:39 +01:00
Sébastien Helleu
f2ad57ceb9
trigger: add support of option "-server" when hiding passwords in command /msg nickserv register
2021-11-12 20:52:14 +01:00
Sébastien Helleu
f4a1baaed3
irc: extend size of some internal buffers
2021-11-07 08:57:07 +01:00
Sébastien Helleu
1b8ad40b81
irc: do not display a message parsing error when a channel buffer can not be created
2021-11-06 18:19:12 +01:00
Sébastien Helleu
2f177dd188
irc: fix join of channels with name longer than 127 chars ( closes #1717 )
2021-11-06 18:17:39 +01:00
Sébastien Helleu
edfc415e9e
irc: fix memory leak in main IRC message callback
2021-11-06 17:58:48 +01:00
Sébastien Helleu
8bb5e33348
irc: fix memory leak in callback of IRC message 353
2021-11-06 17:55:31 +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