Sébastien Helleu
f0f145e2ad
fset: add "t:themable" filter
...
Extend the "t:" filter so the special value "themable" matches every
option whose new themable flag is set, regardless of type (color,
string, integer, boolean, enum). This makes the flag interactively
discoverable in the fset buffer and is the natural way to inspect the
surface area that an upcoming /theme command will be allowed to touch.
The themable flag of an option is now mirrored on struct t_fset_option,
exposed via hdata ("themable", integer) and infolist ("themable",
integer), and printed in the log.
2026-07-01 14:01:53 +02:00
Sébastien Helleu
65a772ca38
core: add themable flag to configuration options
...
Add an "int themable" field on struct t_config_option. The flag is set
automatically for every CONFIG_OPTION_TYPE_COLOR option, and may be set
explicitly on any other type by suffixing the type argument with
"|themable" in the call to config_file_new_option (e.g. "string|themable"
for a string option whose value contains "${color:...}" references).
Opt in the relevant string options in core (buffer_time_format,
day_change_message_*, item_time_format, nick_color_force, prefix_*,
chat_nick_colors, eval_syntax_colors, color palette aliases) and in the
buflist, fset, irc, relay plugins.
The flag is exposed via hdata, infolist, and print_log so scripts and
/debug can read it. This is the foundation for an upcoming /theme
command that will only be allowed to modify themable options.
2026-07-01 14:01:53 +02:00
Sébastien Helleu
5a2c412ded
core: set pointers to NULL after free of data when a buffer is closed ( closes #2332 )
2026-06-29 08:52:10 +02:00
Sébastien Helleu
f3e14829ab
ci: remove check of gettext files with msgcheck
...
Use only poexam to check gettext files.
2026-06-28 16:56:15 +02:00
Sébastien Helleu
376ea3cc9e
ci: cache poexam binary
2026-06-28 16:55:36 +02:00
Sébastien Helleu
df6b994d3b
ci: bump poexam to version 0.0.12
2026-06-28 11:10:59 +02:00
Sébastien Helleu
1f9c3784c7
core: fix copyright and gettext headers
2026-06-28 08:59:43 +02:00
Ivan Pešić
a217e9f72f
Update of the Serbian translations ( #2329 )
...
* core: update Serbian translations
* doc: update Serbian translations
2026-06-27 08:59:03 +02:00
weechatter
8858d4b6b4
core: update German translations
2026-06-23 13:29:41 +02:00
Sébastien Helleu
e9d998a9bf
trigger: add unit for timer interval in /help trigger
2026-06-23 12:15:47 +02:00
Sébastien Helleu
bfb34faa97
irc: replace "atol" by "atoll" for variables cast to time_t
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
2026-06-21 08:19:42 +02:00
Sébastien Helleu
a4b8d7aedd
tcl: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
Replace calls to Tcl_GetLongFromObj by Tcl_GetWideIntFromObj.
2026-06-21 08:19:42 +02:00
Sébastien Helleu
75b364cd89
ruby: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
Replace calls to NUM2ULONG by NUM2ULL.
2026-06-21 08:19:42 +02:00
Sébastien Helleu
914d3df639
python: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
Use "long long" for variables cast to time_t.
2026-06-21 08:19:42 +02:00
Sébastien Helleu
a5404172c8
perl: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, the value returned by SvIV can
be 32-bit (its width depends on how Perl was built), whereas time_t is 64-bit.
Read the date with SvNV instead: a double represents all real timestamps
exactly, so the conversion to time_t no longer depends on the size of the Perl
integer type.
2026-06-21 08:19:42 +02:00
Sébastien Helleu
1dd423cb23
lua: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
Use "long long" for variables cast to time_t.
2026-06-21 07:43:59 +02:00
Sébastien Helleu
8f33a72c99
guile: fix conversion of dates in the API functions
...
On modern 32-bit platforms with a 64-bit time_t, long is 32-bit but time_t is
64-bit.
Replace calls to scm_to_long by scm_to_long_long.
2026-06-21 07:42:02 +02:00
Sébastien Helleu
f4564a1cb0
core, api: remove unneeded cast to time_t
...
The field `tv_sec` of struct timeval is already time_t, the cast is not needed.
2026-06-20 21:50:25 +02:00
Sébastien Helleu
c4dfb16df0
core: use function util_parse_longlong to parse date in command /print
2026-06-20 17:30:42 +02:00
Sébastien Helleu
6facd390fe
core: use function util_parse_longlong to parse time in function hdata_set
2026-06-20 17:30:41 +02:00
Sébastien Helleu
2aada3d0ca
xfer: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
791c39cc84
trigger: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
ce6a214ce1
script: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
3c302e078d
relay: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
90761d6350
api: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
4eba4f9a47
python: use function util_parse_int in API function hook_signal_send
2026-06-20 17:30:41 +02:00
Sébastien Helleu
fcbb508cd7
javascript: use function util_parse_int in API function hook_signal_send
2026-06-20 17:30:41 +02:00
Sébastien Helleu
b49eac6f2d
irc: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
9b418b4dc2
fset: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
08b173f9b7
exec: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
42b91aa91d
buflist: use util functions to parse integers
2026-06-20 17:30:41 +02:00
Sébastien Helleu
4ac2f6c2ad
core: use util functions to parse integers in buffer functions
2026-06-20 17:30:41 +02:00
Sébastien Helleu
3d804810a0
core: use util functions to parse integers in window functions
2026-06-20 17:30:41 +02:00
Sébastien Helleu
987b03da39
core: use util functions to parse integers in nicklist functions
2026-06-20 17:30:41 +02:00
Sébastien Helleu
a1f1443fd8
core: use util functions to parse integers in function gui_line_hook_update
2026-06-20 17:30:41 +02:00
Sébastien Helleu
ca8312a48c
core: use function util_parse_int in function gui_key_grab_init
2026-06-20 17:30:41 +02:00
Sébastien Helleu
971f7b1660
core: use function util_parse_int in function gui_hotlist_clear_level_string
2026-06-20 17:30:41 +02:00
Sébastien Helleu
643f2fab5b
core: use function util_parse_int in function gui_focus_info_hashtable_gui_focus_info_cb
2026-06-20 17:30:41 +02:00
Sébastien Helleu
5f36c52935
core: use function util_parse_int in color functions
2026-06-20 17:30:41 +02:00
Sébastien Helleu
92219ba132
core: use function util_parse_longlong in function gui_chat_hsignal_quote_line_cb
2026-06-20 17:30:41 +02:00
Matthew Horan
905a68739e
doc/api: note that colors param is supported nicks endpoint
2026-06-20 17:18:23 +02:00
Sébastien Helleu
3200a05c00
relay/api: fix memory leak in resources "handshake", "input" and "completion"
2026-06-17 21:54:15 +02:00
Sébastien Helleu
861f589fc2
core: update ChangeLog ( #2326 )
2026-06-17 21:31:03 +02:00
aizu-m
c40261aed1
xfer: fix out-of-bounds write in xfer_dcc_resume_hash ( #2326 )
2026-06-17 21:29:45 +02:00
Sébastien Helleu
770e733303
ci: switch from Ubuntu 24.04 to 26.04
2026-06-15 21:55:54 +02:00
Sébastien Helleu
9bd2aaa25d
core: mute compiler warning on calls to dup() function
2026-06-15 08:22:03 +02:00
Sébastien Helleu
4e206ee3ae
trigger: use "const char *" variables for result of string functions with const parameter
2026-06-15 07:55:20 +02:00
Sébastien Helleu
7ff71d2b0e
spell: use "const char *" variables for result of string functions with const parameter
2026-06-15 07:55:10 +02:00
Sébastien Helleu
203fdca3e8
script: use "const char *" variables for result of string functions with const parameter
2026-06-15 07:54:40 +02:00
Sébastien Helleu
e3ba25df19
relay: use "const char *" variables for result of string functions with const parameter
2026-06-15 07:54:10 +02:00