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
de88cd3b58
core: fix typo in /help bar
2025-01-05 10:16:51 +01:00
Sébastien Helleu
d665e2d489
core: check "weechat" binary with command /upgrade
...
Always check that "weechat" binary exists and is executable with command
`/upgrade`, even when the path to binary is not given.
2025-01-04 18:08:19 +01:00
Sébastien Helleu
818a4c95a9
core: replace calls to malloc by string_asprintf
2024-12-21 15:12:33 +01:00
Sébastien Helleu
798c7a5262
core: fix parsing of command in /pipe command
2024-12-17 23:22:29 +01:00
Sébastien Helleu
732f24b6ba
core: add command /pipe
2024-12-16 13:39:14 +01:00
Sébastien Helleu
328aa8f202
core, plugins: abort upgrade immediately if any upgrade file fails to be written
...
Detail of changes:
- the save of upgrade files in plugins is now done as soon as the "upgrade"
signal is received, and not when the plugin is unloaded (it was too late to
detect any problem and prevent the upgrade to happen)
- if the write of an upgrade file fails, the signal callback in plugin now
returns WEECHAT_RC_ERROR and WeeChat checks this code to stop the upgrade as
soon as this return code is received
- a new flag is added in plugin structure: unload_with_upgrade, it is set to 1
before unloading all plugins when upgrade will happen (all *.upgrade files
are then already successfully written).
2024-11-24 10:29:32 +01:00
Sébastien Helleu
61d7a4c678
core: add message with /debug hooks command when /upgrade is not possible due to running hooks
2024-11-24 09:59:34 +01:00
Sébastien Helleu
93646c0b24
core: add optional hook types in command /debug hooks
2024-11-13 07:35:02 +01:00
Sébastien Helleu
488b3f8e7b
core: reload all plugins with command /plugin reload *
2024-10-20 08:38:19 +02:00
James C. Morey
3160d2accd
core: simplify plugin callback by refactoring if statements
2024-10-20 08:35:24 +02:00
Sébastien Helleu
453e60ed23
core: refactor code to send WeeChat version to the buffer
2024-10-06 17:40:34 +02:00
Josh Soref
42c8f86533
spelling: should / may
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:56 +02:00
Josh Soref
aee09ad0a0
spelling: neither-nor
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:56 +02:00
Josh Soref
a0cac1a5dd
spelling: libgcrypt
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:55 +02:00
Josh Soref
c28696e602
spelling: case-sensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Josh Soref
0505a0ff76
spelling: case-insensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Josh Soref
4ef3011ea9
spelling: cannot
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:02 +02:00
Josh Soref
ef107fd66d
spelling: anymore
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:20:02 +02:00
Sébastien Helleu
5564baf424
core: fix integer overflow in loops (issue #2178 )
2024-09-07 08:39:37 +02:00
Sébastien Helleu
143f694fe2
core, plugins: add missing parentheses when dereferencing a pointer with an array index
2024-09-05 20:57:29 +02:00
Sébastien Helleu
9f44a1087b
core, plugins: simplify help on parameters that can be repeated in commands
2024-08-24 10:59:21 +02:00
Sébastien Helleu
cba7c764da
core: add missing "<id>" in /help buffer for parameter "clear"
2024-08-23 08:27:19 +02:00
Sébastien Helleu
f153b7e463
core: fix memory leak when trying to add a bar that already exists
2024-08-17 07:58:29 +02:00
Sébastien Helleu
828c498a12
core: set proxy option ipv6 to auto by default when creating a new proxy (issue #2164 )
2024-08-08 12:43:31 +02:00
Sébastien Helleu
4e1a0731e7
core: convert proxy option ipv6 from boolean to enum (disable, auto, force) (issue #2164 )
2024-08-06 08:27:09 +02:00
Sébastien Helleu
62c89c1e3b
core: allow mask in command /item refresh
2024-07-01 20:52:31 +02:00
Sébastien Helleu
cb4aa8ea65
core: add hdata_count in /help eval
2024-06-23 22:45:09 +02:00
Sébastien Helleu
0f1441a78c
core: fix command /bar addreplace with input bar (issue #2095 )
...
Now the bar item "input_text" is added only after creating the new input bar,
so it can be added or replaced like the other bars.
2024-06-23 09:47:05 +02:00
Sébastien Helleu
9b356733a9
core: allow buffer id in commands /buffer and /print, in addition to number and name
2024-06-11 08:03:09 +02:00
Sébastien Helleu
920d06bd27
core, plugins: fix return code of command callbacks in case of error
2024-06-10 08:17:25 +02:00
Sébastien Helleu
f4aab20bb4
core: add option addreplace in command /proxy (issue #2095 )
2024-06-09 16:55:53 +02:00
Sébastien Helleu
e06e4d1457
core, plugins: use variable "argv" in calls to macro COMMAND_MIN_ARGS
2024-06-09 10:53:05 +02:00
Sébastien Helleu
ea3486dae3
core: add option addreplace in command /bar (issue #2095 )
2024-06-09 10:17:27 +02:00
Sébastien Helleu
df67f7a0ea
core: fix completion of command /item refresh
2024-06-09 09:11:03 +02:00
Sébastien Helleu
3057d846d9
core: remove check of NULL pointers before calling string_free_split() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
f11c7c1bf4
core: remove check of NULL pointers before calling hashtable_free() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
e73bff95fa
core: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
90
8c3f16dbe3
core: add support for $XDG_STATE_HOME
2024-04-12 22:57:57 +02:00
Sébastien Helleu
4adb64284b
buffer: add property input_get_any_user_data in buffer (issue #2066 )
...
This allows buffers to get any user input, including commands, that are sent to
the buffer callback instead of being executed on the buffer.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
965beb37de
core: fix print of pointer values
2024-04-01 21:08:52 +02:00
Sébastien Helleu
8482e14630
core: display a specific message when the value of option is unchanged after /set command
2024-03-25 12:06:59 +01:00
Sébastien Helleu
24c4029c96
core: remove "wee-" prefix from source files in src/core and src/core/hook
2024-03-12 21:27:37 +01:00