Sébastien Helleu
39ea49b9c5
core: set max version for Curl symbol CURLAUTH_NTLM_WB
2024-09-25 21:13:48 +02:00
Fredrik Fornwall
f9eb31d517
core: Fix build on Android to define htobe64
2024-09-10 07:26:52 +02:00
Sébastien Helleu
0973fe0ad4
core: fix integer overflow in loops (issue #2178 )
2024-09-07 10:52:54 +02:00
Yiheng Cao
db65071db5
core: fix integer overflow in string_free_split functions (issue #2178 )
2024-09-07 10:52:52 +02:00
Sébastien Helleu
82a425d226
core, plugins: add missing parentheses when dereferencing a pointer with an array index
2024-09-07 10:52:39 +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
LuK1337
5b58356390
core: replace manual endianness swap with htobe64() call
...
This fixes generation of TOTP and tests on FreeBSD.
2024-08-14 12:15:55 +02:00
Sébastien Helleu
071f8f87e7
core: add command line option --build-info / -i to display information about build options ( closes #449 )
2024-08-12 21:36:17 +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
e051af0376
api: add constants for IPv6 and allow force of IPv6 in function hook_connect (issue #2164 )
2024-08-06 08:25:42 +02:00
Sébastien Helleu
9ece7b4d8c
core, plugins: fix typo in comments
2024-07-22 11:49:26 +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
c34d522bb7
core: fix cast of pointer to unsigned long long
...
This fixes a warning displayed by the gcc compiler.
2024-06-22 10:21:00 +02:00
Sébastien Helleu
bdfa1bd51c
core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
...
This is a partial revert of the commit
965beb37de .
2024-06-22 08:54:08 +02:00
Sébastien Helleu
1fcf5ac5b3
core, plugins: force "short_name" in buffers to non-empty value (name by default), remove buffer property "short_name_is_set"
2024-06-18 20:34:58 +02:00
Sébastien Helleu
e482360eba
core: replace "%lx" by "%p" in debug of windows
2024-06-14 18:02:45 +02:00
Sébastien Helleu
e64ab3c675
core, plugins: replace "%lx" by "%p" in calls to sscanf
2024-06-14 17:59:02 +02:00
Sébastien Helleu
ce79d218a4
core: remove duplicate search of pointer in hashtable for evaluation of "hdata_count"
2024-06-14 17:37:47 +02:00
Sébastien Helleu
ce3c5f0caa
core: add hdata count in evaluation of expressions
...
Syntax is one of:
- `hdata_count:name[list]`: uses a hdata name and list
- `hdata_count:name[pointer]`: uses a hdata name and pointer (count starts at
this pointer)
2024-06-14 17:04:06 +02:00
Sébastien Helleu
8945b7bf33
core: add function hdata_count
2024-06-14 17:04:06 +02:00
Sébastien Helleu
24e023d467
core: fix id of core buffer in hashtable gui_buffer_by_id after /upgrade
2024-06-11 08:13:20 +02:00
Sébastien Helleu
79a7766466
core: fix typo in comment
2024-06-11 08:09:32 +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
70417a1ac6
api: add hashtable type "longlong"
2024-06-10 23:55:34 +02:00
Sébastien Helleu
dc902b4e0a
api: allow NULL value for key in hashtable
2024-06-10 19:42:47 +02:00
Sébastien Helleu
26c01e30c3
core, plugins: remove unneeded break after return
2024-06-10 15:10:25 +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
12b8ebe4e4
core: add completion "bars_items"
2024-06-09 09:09:09 +02:00
Sébastien Helleu
5a8751b9eb
core, relay: fix include directory of libcjson and libzstd
2024-05-26 23:13:49 +02:00
Sébastien Helleu
2423fdbf2d
core: add option weechat.look.config_permissions ( closes #2057 )
2024-05-18 09:16:47 +02:00
Sébastien Helleu
dcb8fcb6ed
irc: rename option irc.color.item_channel_modes to weechat.color.status_modes
2024-05-12 12:46:32 +02:00
Sébastien Helleu
e7b2d98b6e
core: add buffer property "modes"
2024-05-12 09:26:10 +02:00
Sébastien Helleu
464b019929
core: restore buffer input prompt on /upgrade
2024-05-12 01:31:54 +02:00
Sébastien Helleu
9f536d3dc7
api: return -1 or 1 if one input string is NULL and not the other in string comparison functions
2024-05-08 09:30:20 +02:00
Eli Schwartz
7e79dd92ba
core: conditionally declare variable only used in conditional code
...
Avoids emitting a compiler diagnostic by default for non-NLS builds for
-Wunused-variable.
2024-05-03 18:49:20 +02:00
Eli Schwartz
cefc6820c1
core: remove unused header
...
weechat.h already handles libintl.h and defining suitable macros.
Including it again does nothing other than emit a compile warning when
compiling without NLS:
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:35:
/var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/weechat.h:49: warning: "gettext" redefined
49 | #define gettext(string) (string)
|
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:30:
/usr/include/libintl.h:109: note: this is the location of the previous definition
109 | # define gettext(msgid) dgettext (NULL, msgid)
2024-05-03 18:49:20 +02:00
Sébastien Helleu
f87347d44f
core: fix /upgrade from previous releases (issue #2106 )
...
When 4 directories are received, the state directory is initialized with the
data directory.
This fixes the following error on `/upgrade`:
Error: wrong number of paths for home directories (expected: 1 or 5, received: 4)
2024-04-28 20:19:45 +02:00
Sébastien Helleu
ad33036fea
core: remove check of NULL pointers before calling weelist_free() (issue #865 )
2024-04-26 21:06:47 +02:00
Sébastien Helleu
ac7cc25763
core: remove check of NULL pointers before calling infolist_free() (issue #865 )
2024-04-26 21:06:06 +02:00
Sébastien Helleu
61ff0b8587
core: remove check of NULL pointers before calling config_file_option_free() (issue #865 )
2024-04-26 20:59:44 +02:00
Sébastien Helleu
619b40b42f
core: remove check of NULL pointers before calling string_shared_free() (issue #865 )
2024-04-26 08:55:35 +02:00
Sébastien Helleu
409a06982e
core: remove check of NULL pointers before calling string_dyn_free() (issue #865 )
2024-04-26 08:53:22 +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