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
Sébastien Helleu
d05b83d03f
relay/api: return an error 401 when header "x-weechat-totp" is received with empty value
2025-10-26 10:11:10 +01:00
Sébastien Helleu
0009732f78
relay/api: return an error 401 when header "x-weechat-totp" has an invalid value
2025-10-26 09:19:43 +01:00
Sébastien Helleu
e637e0de1c
relay/api: return an error 400 when URL parameters "nicks", "lines" and "lines_free" have an invalid value
2025-10-26 08:07:23 +01:00
Sébastien Helleu
58c873809b
relay/api: return an error 400 when URL parameter "colors" has an invalid value
2025-10-26 07:22:10 +01:00
Sébastien Helleu
1b669cd13c
irc: fix warning on creation of irc.msgbuffer option when the server name contains upper case letters ( closes #2281 )
...
Now the following command is OK without warning:
/set irc.msgbuffer.TEST.notice current
And the following command returns an error instead of a warning (that means the
option is NOT created):
/set irc.msgbuffer.TEST.NOTICE current
2025-10-14 22:56:41 +02:00
Sébastien Helleu
f854db17ff
core: add hdata for hooks
...
New hooks:
- hook
- hook_command
- hook_command_run
- hook_completion
- hook_config
- hook_connect
- hook_fd
- hook_focus
- hook_hdata
- hook_hsignal
- hook_info
- hook_info_hashtable
- hook_infolist
- hook_line
- hook_modifier
- hook_print
- hook_process
- hook_signal
- hook_timer
- hook_url
New lists (for hooks of type "hook"):
- weechat_hooks_command, last_weechat_hook_command
- weechat_hooks_command_run, last_weechat_hook_command_run
- weechat_hooks_completion, last_weechat_hook_completion
- weechat_hooks_config, last_weechat_hook_config
- weechat_hooks_connect, last_weechat_hook_connect
- weechat_hooks_fd, last_weechat_hook_fd
- weechat_hooks_focus, last_weechat_hook_focus
- weechat_hooks_hdata, last_weechat_hook_hdata
- weechat_hooks_hsignal, last_weechat_hook_hsignal
- weechat_hooks_info, last_weechat_hook_info
- weechat_hooks_info_hashtable, last_weechat_hook_info_hashtable
- weechat_hooks_infolist, last_weechat_hook_infolist
- weechat_hooks_line, last_weechat_hook_line
- weechat_hooks_modifier, last_weechat_hook_modifier
- weechat_hooks_print, last_weechat_hook_print
- weechat_hooks_process, last_weechat_hook_process
- weechat_hooks_signal, last_weechat_hook_signal
- weechat_hooks_timer, last_weechat_hook_timer
- weechat_hooks_url, last_weechat_hook_url
2025-10-12 17:37:24 +02:00
Sébastien Helleu
72b2242135
irc: send SASL username with mechanism EXTERNAL ( closes #2270 )
...
The SASL username is sent if set, otherwise "+" is still sent.
2025-10-12 16:11:33 +02:00
Sébastien Helleu
63313468c9
xfer: add buffer local variable "server" in DCC CHAT buffers
2025-10-04 13:19:01 +02:00
Sébastien Helleu
d9ba00223b
irc: request and perform SASL authentication when the server advertises SASL support with message "CAP NEW" ( closes #2277 )
...
The SASL authentication is done only if not already authenticated with SASL.
2025-10-03 10:26:04 +02:00
Sébastien Helleu
222cb4876e
core: set max version for Curl symbol CURLOPT_KRBLEVEL
2025-09-23 12:13:33 +02:00