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
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
daef5971ae
core: add option -color in command /pipe
2025-02-01 09:37:22 +01:00
LuK1337
04aea1bcb5
core: use <stdbool.h> instead of typedef in ncurses-fake.h
...
Fixes the following error when building in Fedora rawhide:
error: ‘bool’ cannot be defined via ‘typedef’.
Likely GCC 15 related.
2025-01-26 08:54:55 +01:00
Sébastien Helleu
4b7be27028
core: add parameter name in signal handler functions
2025-01-26 08:49:15 +01:00
LuK1337
68c70e5538
core: add int arg for all sigaction.sa_handler functions
...
src/gui/curses/gui-curses-main.c: In function ‘gui_main_loop’:
src/gui/curses/gui-curses-main.c:399:33: error: passing argument 2 of ‘signal_catch’ from incompatible pointer type [-Wincompatible-pointer-types]
399 | signal_catch (SIGWINCH, &gui_main_signal_sigwinch);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from src/gui/curses/gui-curses-main.c:38:
src/gui/curses/../../core/core-signal.h:33:46: note: expected ‘void (*)(int)’ but argument is of type ‘void (*)(void)’
33 | extern void signal_catch (int signum, void (*handler)(int));
| ~~~~~~~^~~~~~~~~~~~~
2025-01-26 08:46:04 +01:00
Sébastien Helleu
b53f3c2db8
core: add tags of lines in hsignal sent with command /pipe
2025-01-25 17:06:10 +01:00
Sébastien Helleu
36b62cfc5e
core: add option -v to display upgrades in command /version
...
The number of upgrades is also displayed on startup after at least one
`/upgrade`.
2025-01-07 20:35:35 +01:00
Sébastien Helleu
80ca209e70
Revert "core: check "weechat" binary with command /upgrade"
...
This reverts commit d665e2d489 .
The fix is not working when WeeChat is not executed with an absolute path.
2025-01-07 17:37:07 +01:00
Sébastien Helleu
d302294723
relay/api: always return a body with field "error" in error responses
2025-01-07 07:52:09 +01:00
Sébastien Helleu
60422ca6b1
relay: remove extra space in JSON authentication error
2025-01-07 07:28:45 +01:00
Sébastien Helleu
9d3388b09e
relay/api: use cjson lib to return errors
2025-01-07 07:23:55 +01:00
Sébastien Helleu
d10af1037b
relay/api: use cjson lib to build JSON body of handshake request
2025-01-07 07:18:01 +01:00
Sébastien Helleu
10b4fffaca
relay/api: fix return code when buffer is not found in completion resource callback
2025-01-07 07:12:37 +01:00
Sébastien Helleu
c48dee3211
relay/api: add schema for errors returned in OpenAPI document
2025-01-06 07:45:02 +01:00
Nils
c6c420c698
relay: add completion resource
2025-01-05 14:54:07 +01:00
Sébastien Helleu
cfe34388fb
relay/api: bump version in OpenAPI document
2025-01-05 13:05:58 +01:00
Sébastien Helleu
3eaa1a3a6e
relay/api: fix name of body field "buffer_name" in doc of POST /api/input
2025-01-05 10:36:04 +01:00
Sébastien Helleu
de88cd3b58
core: fix typo in /help bar
2025-01-05 10:16:51 +01:00