Sébastien Helleu
1d808a1f1c
core: fix buffer overflow in function util_parse_time
2025-05-08 19:09:18 +02:00
Sébastien Helleu
2bc290b6ed
core: fix integer overflow and return "unsigned long" in function util_version_number
2025-05-08 18:45:39 +02:00
Sébastien Helleu
f6cace609c
core: fix memory leak in function util_parse_delay
2025-05-08 18:12:11 +02:00
Sébastien Helleu
d74fc99fe1
core: write configuration files on disk only if there are changes ( closes #2250 )
2025-05-07 20:44:54 +02:00
Sébastien Helleu
51d24fd2da
api: add function file_compare (issue #2250 )
2025-05-07 20:44:48 +02:00
Sébastien Helleu
ca6035f754
core: fix integer overflow in base32 encoding/decoding
2025-05-05 20:43:21 +02:00
Sébastien Helleu
5b4820ab06
core: fix integer overflow with decimal numbers in calculation of expression
2025-05-05 20:25:41 +02:00
Sébastien Helleu
ceb6a007ff
core: add missing empty line
2025-05-05 13:18:35 +02:00
Sébastien Helleu
5b62cb6451
buflist: add variables ${number_zero} and ${number_zero2} (zero-padded buffer number)
2025-05-04 09:28:03 +02:00
Sébastien Helleu
683fa2f585
irc: add support of strikethrough color attribute (using half bright) ( closes #2248 )
...
As ncurses doesn't support strikethrough, the text is rendered as half
bright (WeeChat color: "dim").
2025-04-26 14:10:43 +02:00
Sébastien Helleu
0e777fef4e
core: update example in /help key
2025-04-25 18:12:59 +02:00
Sébastien Helleu
41f96c6494
core: fix write of weechat.log to stdout with weechat-headless --stdout ( closes #2247 )
2025-04-15 08:11:39 +02:00
Sébastien Helleu
d0babe8679
core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
2025-04-11 19:30:32 +02:00
Sébastien Helleu
5ccbdca0c9
core: consider all keys are safe in cursor context ( closes #2244 )
2025-04-04 18:52:58 +02:00
Alvar Penning
d4b8685551
perl: fix build when multiplicity is not available
...
Building WeeChat 4.6.0 on OpenBSD failed with the following error.
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/weechat-perl.c:356:13: error: expected ')'
> function) < 0)
> ^
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/weechat-perl.c:352:9: note: to match this '('
> if (weechat_asprintf (
> ^
> /usr/ports/pobj/weechat-4.6.0/weechat-4.6.0/src/plugins/perl/../weechat-plugin.h:1312:31: note: expanded from macro 'weechat_asprintf'
> (weechat_plugin->asprintf)(__result, __fmt, ##__argz)
On further inspection, the line in question was recently altered in
099e11d7b8 , where a comma was forgotten in the
else branch of the MULTIPLICITY ifdef.
After adding the comma, WeeChat builds as usual.
2025-04-02 22:58:10 +02:00
Sébastien Helleu
2475f20cb7
all: move description of C files below the copyright and license
2025-03-31 11:47:49 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
55d936d63a
relay: add SPDX copyright tag in relay OpenAPI document
2025-03-30 14:47:12 +02:00
Sébastien Helleu
0a5222f5d6
php: add SPDX copyright tag in PHP stub file
2025-03-30 14:47:12 +02:00
Sébastien Helleu
f4b29093ca
python: add SPDX copyright tag in Python stub file
2025-03-30 14:47:12 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
45c8bab9b8
irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ( closes #2241 )
2025-03-28 12:08:40 +01:00
Sébastien Helleu
6d11468059
spell: rename variable "broker" to "spell_enchant_broker"
2025-03-16 15:58:30 +01:00
Joe Hermaszewski
6b19987e7f
spell: allow overriding dictionaries locations
...
Works for aspell and myspell (hunspell) when using enchant.
2025-03-16 15:58:23 +01:00
Sébastien Helleu
847ce17718
xfer: replace "ETA" by "time left"
2025-03-16 15:01:17 +01:00
Andrew Potter
15e2da3aac
xfer: compute speed and ETA with microsecond precision
2025-03-16 15:01:17 +01:00
Sébastien Helleu
ca22e49041
core, irc: replace "long" by "long long" to store seconds in timeval structure
2025-03-16 14:05:11 +01:00
Sébastien Helleu
764b309e92
core, irc, relay: fix formatting of seconds and microseconds
2025-03-16 14:04:28 +01:00
Sébastien Helleu
c0402bce52
core: fix formatting of microseconds in function util_strftimeval
2025-03-16 14:01:04 +01:00
Sébastien Helleu
9fe5fa23a0
core: convert "long long" to "unsigned long long" in functions util_get_microseconds_string and util_parse_delay
2025-03-16 11:13:25 +01:00
Sébastien Helleu
e9983821e7
buflist: fix typo in help on option buflist.look.nick_prefix_empty
2025-03-16 10:36:23 +01:00
Sébastien Helleu
b25a9b11a0
buflist: apply option buflist.look.nick_prefix_empty also on private and list buffers
2025-03-15 19:19:19 +01:00
Aaron Jones
f5038bccbc
Fix function prototypes for list of arguments
...
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes
diagnostics. This is due to its source code using an empty argument list for
functions and function pointers that take no arguments, instead of explicitly
declaring that they take no arguments by using a void list.
This commit replaces all empty argument lists with a void list.
Note that Ruby's headers also suffer the same problem, which WeeChat can't
do anything to fix. Thus, building WeeChat with the Ruby plugin enabled
will still issue approximately 30 such diagnostics.
2025-03-10 08:16:52 +01:00
Sébastien Helleu
68d452b559
core: improve help on option weechat.completion.nick_ignore_words
2025-03-09 08:26:09 +01:00
Sébastien Helleu
2e570c599b
core: add option weechat.completion.nick_ignore_words ( closes #1143 )
2025-03-03 08:27:22 +01:00
Sébastien Helleu
8280a3b65b
api: return input string in function string_iconv_from_internal when current locale is wrong
...
This fixes a bug when writing configuration files with a wrong locale: now
UTF-8 is kept and written in files instead of string converted using a wrong
charset.
2025-03-01 16:44:22 +01:00
Daniel Lublin
cc163a0e7e
irc: add option -connected in command /server list|listfull
2025-02-18 22:09:24 +01:00
Sébastien Helleu
e86e558f3f
xfer: keep spaces at the end of /me command arguments
2025-02-15 23:42:29 +01:00
Sébastien Helleu
718a317cfb
alias: keep spaces at the end of aliases commands arguments
2025-02-15 23:37:06 +01:00
Sébastien Helleu
c275f9d994
alias: keep spaces at the end of /alias command arguments
2025-02-15 23:36:53 +01:00
Sébastien Helleu
9285afc3e2
irc: keep spaces at the end of /topic command arguments
2025-02-15 23:32:33 +01:00
Sébastien Helleu
c7d21a3ea6
api: add function completion_set
2025-02-15 23:22:44 +01:00
Sébastien Helleu
1b54cd24ed
irc: remove extra empty line
2025-02-15 21:14:10 +01:00
Sébastien Helleu
d3a9e4e74b
core: add extra check of string length on whitespace char options
2025-02-15 20:59:22 +01:00
Sébastien Helleu
8fd4a80af8
irc: keep spaces at the end of some command arguments
...
The following commands are now preserving trailing spaces in arguments
received: action, allchan, allpv, allserv, away, ctcp, me, msg, notice, query,
quote, saquit, squery, wallchops, wallops.
2025-02-15 20:54:24 +01:00
Sébastien Helleu
091a17b138
core: keep spaces at the end of some command arguments
...
The following commands are now preserving trailing spaces in arguments
received: allbuf, command, eval, mute, pipe, print, quit, repeat, wait.
2025-02-15 20:54:24 +01:00
Sébastien Helleu
e89d6d69ad
api: add property keep_spaces_right in function hook_set to keep trailing spaces in command arguments
2025-02-15 20:54:24 +01:00
Sébastien Helleu
3c9eb6dcac
core: add option whitespace in command /debug ( closes #947 )
...
New options are added to configure the chars displayed for spaces and
tabulations:
- weechat.look.whitespace_char: char for spaces
- weechat.look.tab_whitespace_char: first char for tabulations
2025-02-15 20:54:14 +01:00
Sébastien Helleu
6388d36858
core: remove unnecessary null check
2025-02-11 21:38:24 +01:00
Sébastien Helleu
ca6e483cdc
relay/api: add a way to toggle between remote and local command execution on remote buffers (issue #2148 )
...
New default key:
- Alt+Ctrl+l (L): toggle execution of commands: remote/local
New options:
- relay.api.remote_input_cmd_local: text displayed for command executed locally
- relay.api.remote_input_cmd_remote: text displayed for command executed on the
remote WeeChat
2025-02-09 18:31:37 +01:00