Emil Velikov
fc6003c74e
cmake: consolidate libm library handling
...
Move the handling to the top-level, adding it _once_ to EXTRA_LIBS.
Thus avoiding some duplication across the board.
This change technically adds an extra link for the unit tests, which
seemingly was omitted by mistake. Alternatively, the extra over-linking
won't be an issue in practise.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2026-02-04 22:21:26 +01:00
Emil Velikov
ae54c3ef65
cmake: consolidate iconv/gettext library handling
...
Move the handling to the top-level, adding it _once_ to EXTRA_LIBS.
Thus avoiding some duplication across the board.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2026-02-04 22:21:25 +01:00
Emil Velikov
b38c00bb0d
cmake: consolidate zlib/zstd library handling
...
Move the handling to the top-level, adding it _once_ to EXTRA_LIBS.
Thus avoiding some duplication across the board.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2026-02-04 22:21:25 +01:00
Emil Velikov
20a7affb70
cmake: remove unnecessary add_dependencies()
...
In a handful of places we explicitly use add_dependencies() where the
exact same libraries are also (implicitly) added as dependencies via
target_link_libraries().
Remove the folder, which helps us remove some duplication with follow-up
patches.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2026-02-04 22:21:25 +01:00
Sébastien Helleu
ef5f197a4a
irc: fix unit of server option anti_flood from seconds to milliseconds in output of /server listfull
2026-01-30 13:49:23 +01:00
Sébastien Helleu
f0160bf5ab
core: add missing context in English message when a key is added with /key missing
2026-01-21 20:53:25 +01:00
Sébastien Helleu
7d51a1331b
core: fix typos in /help allchan, /help allpv and /help allserv
2026-01-21 20:38:37 +01:00
Sébastien Helleu
22b335ce86
core: fix typo in /help help
2026-01-21 20:28:07 +01:00
Sébastien Helleu
9b4fd66de7
irc: ignore self join if the channel is already joined ( closes #2291 )
...
There is an issue with some IRC servers that may send a JOIN with self nick
once already on the channel, this results in a clear of the nicklist on the
second JOIN received.
This fix silently ignores the second self JOIN if the channel is already
joined (with at least one nick).
2025-12-14 14:29:47 +01:00
Sébastien Helleu
9e814860ae
ci: switch from bandit/flake8/pylint to ruff in CI for Python scripts
2025-12-07 16:24:14 +01:00
Sébastien Helleu
1ff001994c
irc: fix creation of irc.msgbuffer option without a server name
...
The regression was introduced by commit
1b669cd13c , which allowed a server name with
upper case but rejected a name or alias with upper case.
This commit fixed the creation of the option when the server name is not given,
so this command works again:
/set irc.msgbuffer.whois current
2025-12-01 07:48:58 +01:00
Sébastien Helleu
d5e6c94246
core: fix compiler warning on possible buffer overflow in function util_parse_time ( closes #2289 )
2025-11-30 11:21:42 +01:00
Sébastien Helleu
d8569ffe27
buflist: add variable ${index_displayed}
2025-11-28 18:45:22 +01:00
Sébastien Helleu
1f0d8d3849
core: add condition on new_tags in functions gui_buffer_set_highlight_tags_restrict and gui_buffer_set_highlight_tags
2025-11-23 10:36:21 +01:00
Sébastien Helleu
c248aa42ce
core: simplify code in gui_buffer_set functions
2025-11-23 10:36:21 +01:00
Sébastien Helleu
2832ef333e
core: do not add/remove highlight words if value is empty in call to gui_buffer_set()
2025-11-23 10:36:21 +01:00
Sébastien Helleu
5543bc236b
tests: add tests on gui buffer set functions
2025-11-23 10:35:43 +01:00
Sébastien Helleu
953ede1200
irc: add tags "irc_cap" and "log3" in client capability request and SASL not supported messages
2025-11-22 16:00:32 +01:00
Sébastien Helleu
c2ff484995
core, irc, relay: add tag "tls" in gnutls messages
2025-11-22 14:52:02 +01:00
Sébastien Helleu
b8048b1666
irc: fix reset of color when multiple modes are set with command /mode
2025-11-22 12:31:37 +01:00
Sébastien Helleu
e33ed57b47
irc: fix colors in MODE message (issue #2286 )
2025-11-22 10:32:44 +01:00
Sébastien Helleu
d23a7a6105
irc: fix colors in ban mask (message 367) and quiet mask (message 728) ( closes #2286 )
2025-11-22 10:02:47 +01:00
Sébastien Helleu
da12df6b73
core: free highlight_disable_regex if the regex is invalid in function gui_buffer_set_highlight_disable_regex
2025-11-18 22:27:15 +01:00
Sébastien Helleu
3176e2a6b7
core: free highlight_regex if the regex is invalid in function gui_buffer_set_highlight_regex
2025-11-18 22:27:15 +01:00
Sébastien Helleu
4555f9a58a
core: fix typo in comment
2025-11-15 20:15:32 +01:00
Sébastien Helleu
3e49b73117
api: fix file descriptor leak in hook_url ( closes #2284 )
...
This can happen after a timeout or if the hook is removed during the transfer.
2025-11-15 17:28:44 +01:00
Sébastien Helleu
898213b4f2
relay/api: return HTTP error 400 in case of invalid body in resource ping
2025-11-13 20:35:58 +01:00
Sébastien Helleu
e6646d1ef1
relay/api: return HTTP error 404 instead of 400 when the buffer is not found in resources completion and input
2025-11-13 07:12:55 +01:00
Sébastien Helleu
1c53d3d466
api: add functions to parse integer numbers
...
New functions:
- util_parse_int
- util_parse_long
- util_parse_longlong
2025-11-12 20:24:00 +01:00
Sébastien Helleu
8032ca1433
core: display an error message in case of invalid size with commands /window splith and /window splitv
2025-11-12 07:26:01 +01:00
Sébastien Helleu
ac69288ed7
core: display an error message in case of invalid size with command /window resize
2025-11-12 07:22:12 +01:00
Sébastien Helleu
0930976456
core: display an error if parameters are missing in command /window resize
2025-11-12 07:18:06 +01:00
Sébastien Helleu
d5bfe35245
core: display an error if parameters are missing or if the buffer is not with "free content" in command /window scroll_horiz
2025-11-12 07:12:00 +01:00
Sébastien Helleu
90a42ee213
core: display an error if parameters are missing in command /window scroll
2025-11-12 07:08:33 +01:00
Sébastien Helleu
6981f9f204
core: display an error message if the window number is not found with command /window xxx -window N
2025-11-12 07:05:56 +01:00
Sébastien Helleu
b9f1145d03
core: fix screen size in macro getmaxyx when using fake ncurses
2025-11-12 13:45:27 +01:00
Sébastien Helleu
f3a8068109
core: fix use of window->coords by checking size of array before using it
2025-11-12 13:45:27 +01:00
Sébastien Helleu
237b07575b
core: fix typo in comment
2025-11-11 10:57:51 +01:00
Sébastien Helleu
cfcadd155d
core: display an error message if the date can not be parsed with command /print -date
2025-11-11 10:41:55 +01:00
Sébastien Helleu
d0298b4738
core: display a message with command /filter toggle
...
The command has now the same output as `/filter enable` or `/filter disable`:
/filter toggle => "Message filtering disabled"
/filter toggle => "Message filtering enabled"
2025-11-10 15:06:44 +01:00
Sébastien Helleu
c0116febe5
core: display an error message in case of invalid parameters with command /cursor
2025-11-10 09:05:36 +01:00
Sébastien Helleu
8c6e6bb383
core: display full buffer name in output of command /buffer listvar
2025-11-10 09:04:13 +01:00
Sébastien Helleu
c9d4dd48a0
core: display an error message if the buffer is not found with command /buffer listvar
2025-11-10 09:04:13 +01:00
Sébastien Helleu
af41184889
core: fix return code of command /buffer renumber when the start number is invalid
2025-11-10 09:04:13 +01:00
Sébastien Helleu
6d7dd46015
core: display an error message if the bar is not found with command /bar scroll
2025-11-10 09:04:13 +01:00
Sébastien Helleu
93c0ee57c8
plugins: move description of weechat-plugin.h below the copyright and license
2025-11-09 13:02:08 +01:00
Sébastien Helleu
8143d44e44
buflist: replace hardcoded "buflist" by constant in error message
2025-11-01 16:10:11 +01:00
Sébastien Helleu
0dab9b9257
irc: display a warning for each unknown or invalid server option in commands /connect and /server
2025-11-01 16:02:53 +01:00
Sébastien Helleu
07ef353b1b
irc: remove temporary servers and option irc.look.temporary_servers
2025-11-01 09:15:54 +01:00
Sébastien Helleu
93d73d234f
relay/api: consider boolean/long query string parameters as invalid if they are empty
2025-10-26 18:12:02 +01:00