Sébastien Helleu
f4e075f213
Version 4.4.5-dev
2024-11-30 09:06:34 +01:00
Sébastien Helleu
89afeb5aa2
Version 4.4.4
2024-11-30 09:03:02 +01:00
Sébastien Helleu
a4fd1df891
debian: update changelog
2024-11-30 08:52:21 +01:00
Sébastien Helleu
bff4ab7808
ci: fix macOS CI
...
This is a workaround for https://github.com/actions/runner-images/issues/10984
2024-11-26 07:44:03 +01:00
Sébastien Helleu
ef1b6a27f1
core: update ChangeLog (issue #2214 , issue #2215 )
2024-11-26 07:44:03 +01:00
Trygve Aaberge
e6cdd40056
script: don't try to display the old line if it's NULL
...
This fixes a crash which would happen if you scrolled the script buffer
and then did a search which got fewer search results than the index of
the selected line before the search. E.g. press page down to go to the
second page and then search for `test`.
2024-11-26 07:44:03 +01:00
Sébastien Helleu
e0b01d3628
perl: add midding #define of __USE_XOPEN to call wcwidth defined in wchar.h
2024-11-26 07:44:03 +01:00
Sébastien Helleu
3fce54e0ca
core: update ChangeLog (issue #2213 )
2024-11-25 21:28:48 +01:00
Trygve Aaberge
fb7a84589d
perl: only set Perl locale if the locale is broken
...
It turns out that Debian has reverted the commit in Perl that broke the
locale in their 5.38 branch, so it did not have the issue. However, the
workaround we added to fix the locale apparently makes the version
Debian/Ubuntu has crash on perl_destruct. I'm not sure why it makes it
crash, but since it doesn't crash on newer Perl versions, I'm assuming
that it's another bug with the locale handling in that Perl version.
To avoid the crash, make sure to only set the locale if we detect that
it has been broken by Perl. We do this by checking if the value returned
by wcwidth (160) (the first non-ascii printable character) has changed.
If this value is not the same after the call to perl_construct, the
locale has been broken.
I moved the call to Perl_setlocale to right after perl_construct, as the
call to perl_construct is what breaks the locale.
2024-11-25 21:27:42 +01:00
Sébastien Helleu
c7017f2fce
core: update ChangeLog (issue #2209 )
2024-11-24 16:25:28 +01:00
Trygve Aaberge
a8c1725566
Fix crash when unloading Perl scripts with Perl 5.38
...
Apparently the issue with the locale being reset with Perl 5.38 can
cause a crash when unloading the scripts on some systems (at least
Ubuntu 24.04). There was a workaround added in commit f4b9cad72 , but it
doesn't work to avoid the crash. However if we set LC_ALL instead of
LC_CTYPE the crash doesn't occur.
Fixes #2187
2024-11-24 16:25:09 +01:00
Sébastien Helleu
f8c7ed65e6
build: remove our own Ruby detection and rely on CMake detection, require CMake 3.18 (issue #1156 )
...
This fixes the detection of Ruby on macOS 14.
2024-11-05 11:12:28 +01:00
Sébastien Helleu
712227da38
ci: switch from macOS 12 to 14
2024-11-05 10:19:23 +01:00
LuK1337
c079852deb
tests: migrate away from removed ast features
...
See https://github.com/python/cpython/pull/119563 .
2024-11-04 18:49:13 +01:00
Sébastien Helleu
aab657bcfd
core: remove use of arraylist in function gui_buffer_merge
2024-11-04 18:40:29 +01:00
Sébastien Helleu
aa2153827e
core: send signal "buffer_moved" only when the buffer number changes (issue #2097 )
2024-11-04 18:40:27 +01:00
Sébastien Helleu
f9660feb94
core: fix too many sorts of hotlist when buffers are moved (issue #2097 )
...
A performance issue was happening when buffers are moved to another position
and when the hotlist contains a lot of buffers: each time a signal
"buffer_moved" is sent, the hotlist is sorted again.
This fix delays the resort of hotlist after all the moves are done using a
timer with a very small delay (one millisecond).
2024-11-03 23:42:23 +01:00
Sébastien Helleu
5ab0ff656f
relay, xfer: fix letters with actions displayed on top of buffer
...
Since WeeChat 4.0.0, the actions are now case sensitive and must be typed as
lower case.
This fixes the help line displayed on top of relay and xfer buffers: letters
for actions are now displayed with lower case instead of upper case.
2024-10-31 20:38:39 +01:00
Sébastien Helleu
53aa046476
build: add a retry build mechanism on make in Debian packaging
...
When the environment variable `RETRY_BUILD` is set to `1`, the file
`debian/rules` is patched to run `dh_auto_build` multiple times, until the
build succeeds.
This is a workaround for an issue with the build in an arm64 chroot, where the
compiler randomly segfaults.
2024-10-30 14:10:51 +01:00
Sébastien Helleu
c51be0a6a8
Version 4.4.4-dev
2024-10-30 12:44:58 +01:00
Sébastien Helleu
eb446f099d
Version 4.4.3
2024-10-30 12:13:22 +01:00
Sébastien Helleu
4edbbddf2c
build: fix check of WeeChat git repository
...
The `.git` directory can also be a regular file in a git worktree.
2024-10-30 08:00:00 +01:00
Sébastien Helleu
276990699a
debian: update changelog
2024-10-30 07:47:22 +01:00
Sébastien Helleu
8dc7bb409d
doc: replace font-awesome icons by translated captions
...
This removes use of a remote CDN (Cloudflare), as font-awesome is no longer
used.
2024-10-30 07:47:16 +01:00
Sébastien Helleu
410ffb2418
debian: bump Standards-Version to 4.7.0
2024-10-30 07:47:07 +01:00
Sébastien Helleu
1ba3e3530b
debian: add file CHANGELOG.md in weechat-core.docs
2024-10-30 07:47:04 +01:00
Sébastien Helleu
36332d11c8
doc: rename git branch master to main in URLs
2024-10-16 20:39:15 +02:00
Sébastien Helleu
53da9df883
tests: fix URL to Python unparser
2024-10-16 20:38:03 +02:00
Sébastien Helleu
956befb655
core: always send the signal "buffer_switch", even when the buffer is opening (issue #2198 )
2024-10-06 21:00:50 +02:00
Sébastien Helleu
03bd118854
core: remove extra parenthesis in ChangeLog
2024-10-05 14:08:18 +02:00
Sébastien Helleu
57224f4cee
irc: fix crash on /list buffer when a filter is set (issue #2197 )
2024-10-05 09:17:55 +02:00
Sébastien Helleu
39ea49b9c5
core: set max version for Curl symbol CURLAUTH_NTLM_WB
2024-09-25 21:13:48 +02:00
Sébastien Helleu
ccc45c9284
core: add CVE id in ChangeLog
2024-09-25 20:41:20 +02:00
Sébastien Helleu
639c05dd36
core: update ChangeLog (issue #2180 )
2024-09-10 07:27:44 +02:00
Fredrik Fornwall
f9eb31d517
core: Fix build on Android to define htobe64
2024-09-10 07:26:52 +02:00
Sébastien Helleu
bcd3594b38
Version 4.4.3-dev
2024-09-08 11:56:54 +02:00
Sébastien Helleu
26da6bda4d
Version 4.4.2
2024-09-08 11:49:21 +02:00
Sébastien Helleu
1abeb71603
core: update ChangeLog (issue #2178 )
2024-09-07 10:54:01 +02:00
Sébastien Helleu
172d383fd1
trigger: fix integer overflow in loop (issue #2178 )
2024-09-07 10:53:01 +02:00
Sébastien Helleu
de30a87a21
relay: fix integer overflow in loops (issue #2178 )
2024-09-07 10:52:59 +02:00
Sébastien Helleu
70cd508cf0
irc: fix integer overflow in loops (issue #2178 )
2024-09-07 10:52:57 +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
90ba9264de
tests: add tests on function string_rebuild_split_string with empty items
2024-09-07 10:52:48 +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
af2b48c69e
core: fix typo in French translation
2024-09-07 10:51:41 +02:00
Sébastien Helleu
8dfd54ae3d
doc/faq: fix suggested value for option irc.server.xxx.tls_priorities
2024-09-07 09:18:54 +02:00
Sébastien Helleu
aeb973fdbe
doc: fix color of text with syntax highlighting and light theme
2024-09-07 09:17:57 +02:00
Sébastien Helleu
677efe8184
build: replace deprecated "DEPEND" by "BUILD_REQUIRES" in Cygwin packaging
2024-09-07 09:17:02 +02:00
Sébastien Helleu
9b30137dd4
build: add license in Cygwin packaging
2024-09-07 09:16:57 +02:00
Sébastien Helleu
230c637565
Version 4.4.2-dev
2024-08-19 20:00:40 +02:00
Sébastien Helleu
e3c76cd7e6
Version 4.4.1
2024-08-19 19:57:29 +02:00
LuK1337
4f45828fd6
cmake: find 'lua' first
...
On Fedora, `lua` is an up to date package.
2024-08-17 11:29:00 +02:00
LuK1337
25809ff592
lua: fix broken LUA_VERSION check
...
/usr/include/lua-5.1/lua.h:19:25: error: token ""Lua 5.1"" is not valid
in preprocessor expressions
2024-08-17 10:10:53 +02:00
Sébastien Helleu
1d620ce7c7
Version 4.4.1-dev
2024-08-17 09:22:19 +02:00
Sébastien Helleu
532008e172
Version 4.4.0
2024-08-17 08:33:14 +02:00
Sébastien Helleu
55d7e4c474
relay/weechat: fix uninitialized pointer in infolist command
2024-08-17 08:10:21 +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
c8dffad56c
core: add signals "layout_buffers_applied" and "layout_windows_applied" ( closes #2167 )
2024-08-16 12:36:31 +02:00
Sébastien Helleu
4de6fa11d5
core: add link to file UPGRADING.md in version 4.3.1
2024-08-16 12:05:12 +02:00
Sébastien Helleu
0182153511
core: send signal "buffer_moved" for all buffers affected by merge/unmerge
2024-08-15 21:35:38 +02:00
Sébastien Helleu
6de0195d0a
irc: fix send of split messages when server option "anti_flood" set to 0 ( closes #2172 )
2024-08-15 19:41:08 +02:00
Sébastien Helleu
e2edc019cc
relay/api: add extra checks on function parameters
2024-08-15 17:48:20 +02:00
Sébastien Helleu
b31a8bc1ef
doc/faq: add key Alt+Shift+N in questions about copy/paste and URLs
2024-08-15 17:25:36 +02:00
Sébastien Helleu
bbb2515b0e
doc/faq: add command to set "size_max" for nicklist when bar is moved to top
2024-08-15 16:49:31 +02:00
Sébastien Helleu
b6cccb7cee
core: add version 4.3.6 in ChangeLog
2024-08-15 15:48:08 +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
17d225ad73
relay: fix compiler warnings on unused parameters when CJSON is disabled
2024-08-14 07:51:41 +02:00
Sébastien Helleu
e810cc5f70
doc: add command line option --build-info in man pages and user's guide
2024-08-13 09:46:12 +02:00
Sébastien Helleu
22453e1a37
core: fix German translation
2024-08-13 09:42:36 +02:00
Nils Görs
8e2dda1bc9
core: update German translations
2024-08-13 09:07:44 +02:00
Sébastien Helleu
9c8a39b09e
ci: add command weechat --build-info
2024-08-12 22:07:00 +02:00
Sébastien Helleu
0a99ed5f2c
core: fix define of CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX in config.h (issue #449 )
2024-08-12 21:55:34 +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
Nils Görs
f09855540e
core: update German translations
2024-08-12 12:04:59 +02:00
Sébastien Helleu
0637e9f629
lua: remote string "Lua" from Lua version in output of /debug libs
2024-08-12 08:22:48 +02:00
Sébastien Helleu
b63f63f001
relay/api: fix send of data to remote after command /upgrade executed in the remote client
2024-08-11 23:35:51 +02:00
Sébastien Helleu
1de8fec2ee
relay/api: automatically reconnect to remotes with "autoconnect" enabled after /upgrade
2024-08-11 14:26:36 +02:00
Sébastien Helleu
970aa55f7f
relay/api: remove unneeded free of client->http_req->id
2024-08-11 12:27:37 +02:00
Sébastien Helleu
a317c785fb
relay/api: add automatic reconnection to remote ( closes #2166 )
...
New options:
- remote option "autoreconnect_delay"
- relay.api.remote_autoreconnect_delay_growing
- relay.api.remote_autoreconnect_delay_max
2024-08-11 12:18:28 +02:00
Sébastien Helleu
fc6811341a
irc: fix typo in comment
2024-08-11 11:57:35 +02:00
Sébastien Helleu
6e0f8392b9
doc/relay/api: add event "buffer_time_for_each_line_changed"
2024-08-10 19:06:39 +02:00
Sébastien Helleu
8010eeece3
relay/api: add support of time displayed in remote client buffers
2024-08-10 14:29:30 +02:00
Sébastien Helleu
aeac9f02f9
core: add signal "buffer_time_for_each_line_changed"
2024-08-10 14:27:53 +02:00
Sébastien Helleu
24734c4fe0
relay/api: add field "tmie_displayed" in GET /api/buffers
2024-08-10 13:58:58 +02:00
Sébastien Helleu
41ab22554c
tests/relay/api: add missing fields in test of buffer to json function
2024-08-10 13:42:38 +02:00
Sébastien Helleu
bb2387ec38
relay/api: add support of hidden buffers in remote client (issue #2159 )
2024-08-10 12:55:17 +02:00
Sébastien Helleu
b00f94dc70
relay/api: add field "hidden" in GET /api/buffers (issue #2159 )
2024-08-10 12:42:55 +02:00
Sébastien Helleu
07ef722c06
relay/api: disconnect cleanly when the remote is quitting ( closes #2168 )
2024-08-09 23:37:33 +02:00
Sébastien Helleu
0296957cce
relay/api: add event "quit", sent to clients when WeeChat is quitting (issue #2168 )
2024-08-09 23:32:33 +02:00
Sébastien Helleu
b4d0054f07
relay/api: disconnect from remote in case of error when sending data
2024-08-09 18:26:02 +02:00
Sébastien Helleu
995cbe542e
relay/api: automatically disconnect when the command /upgrade is executed on the remote
2024-08-09 18:23:23 +02:00
Sébastien Helleu
6e775e4768
relay/api: close obsolete buffers when reconnecting to the remote
...
This closes all buffers that exist locally but not on the remote any more,
after reconnecting to the remote.
2024-08-09 18:08:31 +02:00
Sébastien Helleu
e5b6eab2f6
relay/api: do not reset input text on existing buffers when reconnecting to remote
2024-08-09 18:06:42 +02:00
Sébastien Helleu
c132adc52c
relay/api: fix buffers synchronization with existing buffers that have been renamed on remote in the meanwhile ( closes #2169 )
2024-08-09 18:04:10 +02:00
Sébastien Helleu
78f0a3e087
relay/api: replace calls to strcmp by weechat_strcmp
2024-08-09 18:02:42 +02:00
Sébastien Helleu
eb5399518e
relay/api: clear lines and nicklist on all remote buffers upon successful connection to the remote ( closes #2161 )
2024-08-09 18:01:59 +02:00
Sébastien Helleu
87a5620623
tests: fix typo in header
2024-08-09 07:24:11 +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
eaf6d33f22
core: update translations (issue #2164 )
2024-08-06 08:29:23 +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
5fe3b38892
irc: convert server option ipv6 from boolean to enum (disable, auto, force) (issue #2164 )
2024-08-06 08:25:42 +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
ab2bcbac4e
doc/plugin: fix Python example of function hook_connect
2024-07-27 09:47:03 +02:00
Sébastien Helleu
8c48b2f310
relay/api: fix connection to remote using an IPv6 address with square brackets ( closes #2156 )
2024-07-22 17:24:50 +02:00
Sébastien Helleu
9ece7b4d8c
core, plugins: fix typo in comments
2024-07-22 11:49:26 +02:00
Sébastien Helleu
cadd04693a
irc: add support of message 569 (whois, connecting from) ( closes #2162 )
2024-07-22 10:39:03 +02:00
Sébastien Helleu
1c04f9419c
tests: fix comment on test of IRC message 344
2024-07-22 10:38:13 +02:00
Sébastien Helleu
03d8fddafd
core: add contributor (issue #2136 )
2024-07-21 11:44:53 +02:00
miko
e4e0b9764d
plugins: refactor macro weechat_va_format with the same behavior as string_asprintf
2024-07-21 11:34:02 +02:00
Sébastien Helleu
d3ca619526
relay/api: fix connection to remote without password ( closes #2158 )
2024-07-20 16:26:53 +02:00
Sébastien Helleu
fc197df056
relay/api: allow clients without authentication when no relay password is defined and option relay.network.allow_empty_password is on (issue #2158 )
2024-07-20 15:57:56 +02:00
Nils Görs
484b90d39a
core: update German translations
2024-07-19 12:59:31 +02:00
Sébastien Helleu
66707dbdf9
relay: add option reconnect in command /remote ( closes #2160 )
2024-07-19 09:19:34 +02:00
Nils Görs
66792445b4
core: update German translations
2024-07-18 16:14:18 +02:00
Sébastien Helleu
b316a7a0c6
script: add info "script_info"
2024-07-17 22:38:47 +02:00
Sébastien Helleu
c486a4f60a
relay: fix crash when sending data to a remote buffer when the remote has been deleted ( closes #2157 )
2024-07-16 23:51:46 +02:00
Sébastien Helleu
2646d1b5ad
core: add version 4.3.5 in ChangeLog
2024-07-16 23:03:48 +02:00
Sébastien Helleu
40b074c6d6
ruby: fix crash in plugin initialization ( closes #2163 )
...
This regression was introduced by commit
701f64afc1 .
2024-07-15 09:39:54 +02:00
Sébastien Helleu
ceba5f4947
doc/relay: remove duplicated description of data in message "_buffer_line_data_changed"
...
A link to "_buffer_line_added" is provided as data is exactly the same in this
message.
2024-07-14 09:39:01 +02:00
Sébastien Helleu
620e0dd8b6
doc/relay: fix title of chapter "_buffer_line_changed" in Japanese doc
2024-07-14 09:22:59 +02:00
Sébastien Helleu
a957266279
relay: translate connection status in output of commands /relay list and /relay listfull
2024-07-13 10:33:06 +02:00
Sébastien Helleu
2d534aed68
relay: display connection status in output of commands /remote list and /remote listfull
2024-07-13 10:32:56 +02:00
Ivan Pešić
b86bd39975
Update Serbian translation
2024-07-10 21:26:59 +02:00
Eric Lalonde
5bd581f8cf
irc: fix lag check interval comment
...
The network lag check interval is stored in irc_config_network_lag_check, which does not default to 5 seconds.
2024-07-08 21:59:49 +02:00
Sébastien Helleu
8e2275cebc
relay/api: fix timezone of dates sent to clients ( closes #2151 )
2024-07-08 19:10:27 +02:00
Sébastien Helleu
7e73da310e
relay/api: remove unused macro MSG_ADD_HDATA_TIME (issue #2151 )
2024-07-08 19:08:41 +02:00
Sébastien Helleu
a75db3488d
relay/api: allow body type "buffers" in remote client
2024-07-08 18:16:56 +02:00
Nils Görs
8511fd7b7b
core: update German translations
2024-07-08 10:46:19 +02:00
Sébastien Helleu
9d98dee7d9
spell: improve error displayed when a word can not be added to the dictionary ( closes #2144 )
2024-07-06 11:57:26 +02:00
Nils Görs
c6092b67d0
core: update German translations
2024-07-04 11:23:53 +02:00
Sébastien Helleu
42fd085388
core: add version 4.3.4 in ChangeLog
2024-07-03 22:09:05 +02:00
Sébastien Helleu
06685b6e68
core: add info "window" ( closes #2141 )
2024-07-01 21:23:36 +02:00
Sébastien Helleu
62c89c1e3b
core: allow mask in command /item refresh
2024-07-01 20:52:31 +02:00
Sébastien Helleu
cac5717b41
relay/api: add body types buffers and lines (array)
2024-06-30 13:01:29 +02:00
Sébastien Helleu
a9ed58fae3
core: add relay protocol in ChangeLog entries
2024-06-30 00:38:06 +02:00
Sébastien Helleu
8f13a9cff0
relay/api: fix "body_type" returned when lines or nicks of a buffer are requested
...
The "body_type" returned is now this one, instead of "buffer":
- `GET /api/buffers/xxx/lines`: "line"
- `GET /api/buffers/xxx/nicks`: "nick_group"
2024-06-30 00:36:29 +02:00
Sébastien Helleu
3828a9f987
tests: add field "request_id" in tests of relay api protocol
2024-06-30 00:22:46 +02:00
Sébastien Helleu
270a822f41
relay/api: bump version in OpenAPI document
2024-06-30 00:15:25 +02:00
Sébastien Helleu
259615d436
relay/api: add field "request_id" in websocket frame (request and response)
2024-06-30 00:11:29 +02:00
Sébastien Helleu
1cacbde6b7
relay: remove check of NULL pointers before calling free functions
2024-06-30 00:11:00 +02:00
Sébastien Helleu
f8f6e100d0
relay/api: always set "body_type" and "body" (null if there is no body) in websocket frame
2024-06-29 23:59:59 +02:00
Sébastien Helleu
2184af9d99
relay: flatten JSON event object sent to api relay clients
2024-06-29 19:48:34 +02:00
Sébastien Helleu
86c4f3979a
doc/user: change port in examples of weechat relay from 9000 to 9500
2024-06-29 17:37:47 +02:00
Sébastien Helleu
701f64afc1
ruby: fix builtin functions not available ( closes #2109 )
2024-06-29 07:59:06 +02:00
Sébastien Helleu
e6e0843698
core: add missing command /filter in ChangeLog (issue #1956 )
2024-06-29 07:41:58 +02:00
Brad Smith
de6fe1f3e1
tests: fix compilation of tests on OpenBSD
2024-06-28 23:23:15 +02:00
Sébastien Helleu
3993aa310f
relay: send event "buffer_line_data_changed" to clients of "weechat" protocol
2024-06-27 22:21:09 +02:00
Sébastien Helleu
7d6afff01c
relay: add line id in buffer lines sent to clients with weechat protocol
2024-06-27 22:12:34 +02:00
Sébastien Helleu
555632b615
relay/remote: update buffer line on event "buffer_line_data_changed"
2024-06-27 21:39:21 +02:00
Sébastien Helleu
d5975c96e9
relay: send event "buffer_line_data_changed" to API clients
2024-06-27 21:37:47 +02:00
Sébastien Helleu
e9d46b41a1
api: send new signal "buffer_line_data_changed" when a line is updated in a buffer via hdata
2024-06-27 20:55:42 +02:00
Sébastien Helleu
b04e1ffd27
relay: fix read of one buffer line in API protocol
2024-06-27 20:55:42 +02:00
Sébastien Helleu
f076db4767
api: add function line_search_by_id
2024-06-27 20:55:42 +02:00
Sébastien Helleu
0e9ed21edf
tests/scripts: add tests on window functions
2024-06-27 20:55:42 +02:00
Sébastien Helleu
74fabe1946
tests/scripts: add tests on buffer functions
2024-06-27 20:55:42 +02:00
Sébastien Helleu
476708923c
tests/scripts: fix comment
2024-06-27 20:55:42 +02:00
Sébastien Helleu
c6a4ffb1a7
core: fix crash when deleting a bar that has no items ( closes #2138 )
2024-06-27 18:52:12 +02:00
Sébastien Helleu
85c7494dc7
python: call empty eval workaround before auto-load of scripts (issue #2046 , issue #2126 )
...
This should definitely fix the crash with Python 3.12, even when scripts are
auto-loaded (the previous fix was working only when the scripts are loaded
manually).
2024-06-26 18:44:35 +02:00
Sébastien Helleu
3d3d8f2ea7
scripts: fix reset of "quiet" status in case of nested calls (issue #2046 , issue #2126 )
2024-06-26 18:43:40 +02:00
Nils Görs
dc283dd1c7
core: update German translations
2024-06-24 10:58:24 +02:00
Sébastien Helleu
cb4aa8ea65
core: add hdata_count in /help eval
2024-06-23 22:45:09 +02:00
Sébastien Helleu
7cab57fba1
core: update ChangeLog (issue #2046 , issue #2126 )
2024-06-23 18:42:01 +02:00
Trygve Aaberge
830b152776
python: unload script interpreters before eval interpreter
...
The workaround in the previous commit didn't work for one user, so try
unloading the eval interpreter last to see if that helps.
2024-06-23 18:40:18 +02:00
Trygve Aaberge
c325dedf05
python: add workaround for crash on unload with Python 3.12
...
Python 3.12 has a bug where it crashes when you unload all the
interpreters unless you make sure to unload the first interpreter you
loaded last. For some reason, loading the eval interpreter before any
scripts also seems to prevent the issue, even if the eval interpreter is
unloaded before the other interpreters.
So this just evals an empty string at the end of initing the Python
plugin if the Python version is 3.12, to make sure the eval interpreter
is loaded first.
Fixes #2046
2024-06-23 18:40:18 +02:00
Sébastien Helleu
03048895ec
core: add distribution in bug report template
2024-06-23 13:34:19 +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
Krzysztof Korościk
c885a5031f
core: update polish translation
2024-06-22 19:44:25 +02:00
Sébastien Helleu
4fbea53439
core: add version 4.3.3 in ChangeLog
2024-06-22 11:50:09 +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
2a6b16d1de
tests: add tests of hdata returning NULL pointer in eval
2024-06-22 09:08:47 +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
a75a947f5f
irc: fix apply of custom buffer property "short_name" when a channel buffer is renamed
2024-06-19 21:43:08 +02:00
Sébastien Helleu
0d8e3a48ee
core: apply buffer properties (options weechat.buffer.*) when a buffer name is changed
2024-06-19 21:42:38 +02:00
Sébastien Helleu
7cd8312bf9
irc: fix property "short_name" of channel buffer when the joined channel has a different case than the /join command
2024-06-19 20:52:02 +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
eb83e8d018
doc/relay: add doc on "api" relay
2024-06-18 20:32:05 +02:00
Sébastien Helleu
7d4e0acfef
doc/relay: move diagram to an include file
2024-06-16 20:27:57 +02:00
Sébastien Helleu
b18af8dcf4
doc: add shell syntax highlighting
2024-06-16 20:05:45 +02:00
Sébastien Helleu
94bcf98c63
doc/relay: add "api" in list of other relay protocols
2024-06-16 20:05:45 +02:00
Sébastien Helleu
23e3a60e4e
debian: add Serbian docs in packaging
2024-06-16 20:05:45 +02:00
Sébastien Helleu
7b39706716
debian: add Czech quickstart guide in packaging
2024-06-16 20:05:45 +02:00
Sébastien Helleu
8e7597815f
doc: rename doc "weechat_relay_protocol" to "weechat_relay_weechat"
2024-06-16 20:05:45 +02:00
Ivan Pešić
8f952a4b29
doc: Update Serbian documentation
2024-06-16 20:04:28 +02:00
Ivan Pešić
3155764eb5
core: Update Serbian translation
2024-06-16 20:04:28 +02:00
Sébastien Helleu
36ca300b8d
Revert "core: replace "%lx" by "%p" in function relay_weechat_msg_add_pointer"
...
This reverts commit 8923ecc7d8 .
2024-06-16 10:16:51 +02:00
Sébastien Helleu
740aa49271
irc: rename parameter -re to -raw in command /list ( closes #2124 )
2024-06-16 09:15:03 +02:00
Sébastien Helleu
d171c1682c
doc/api: replace format "%lx" by "%p" in examples
2024-06-14 22:14:28 +02:00
Sébastien Helleu
8923ecc7d8
core: replace "%lx" by "%p" in function relay_weechat_msg_add_pointer
2024-06-14 18:10:45 +02:00
Sébastien Helleu
f8d98bbd5e
core: replace "%lx" by "%p" in dump of relay data
2024-06-14 18:10:18 +02:00
Sébastien Helleu
d0830b9255
relay: fix dump of variable "websocket_key"
2024-06-14 18:09:53 +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
c83b08fae8
tests: add test on function hdata_count with empty list "gui_layouts"
2024-06-14 17:37:11 +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
63148c5cc8
doc/api: add type "long long" in function hashtable_get_string
2024-06-11 07:17:28 +02:00
Sébastien Helleu
8366c32b0a
core: add hashtable to quickly find buffers by id
2024-06-10 23:55:34 +02:00
Sébastien Helleu
70417a1ac6
api: add hashtable type "longlong"
2024-06-10 23:55:34 +02:00
Sébastien Helleu
93433e5dd7
tests: add tests on hashtable with different key/value types
2024-06-10 19:42:57 +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
023a3b90fa
core: fix refresh of bar item "scroll" in root bar after /buffer clear ( closes #590 )
2024-06-10 14:29:29 +02:00
Sébastien Helleu
7395387ebe
core: add issue #446 in ChangeLog
2024-06-10 13:45:09 +02:00
Sébastien Helleu
3ee5341fbc
perl: use lower case for CMake keywords
2024-06-10 09:01:27 +02:00
Sébastien Helleu
39cb0942a2
perl: fix quote of variable PERL_LFLAGS in CMake file
2024-06-10 08:59:36 +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
3835351226
tests: add placeholder for tests on function irc_list_export
2024-06-09 23:51:00 +02:00
Sébastien Helleu
b0f0afd7fa
fset: fix typo in /help fset
2024-06-09 23:16:32 +02:00
Sébastien Helleu
8824ff7d6c
irc: add option -export in command /list, add option irc.look.list_buffer_format_export
2024-06-09 23:15:26 +02:00
Sébastien Helleu
fb86ddc770
irc: clear /list buffer when disconnecting from server ( closes #2133 )
2024-06-09 18:35:22 +02:00
Sébastien Helleu
d63553a73d
irc: display an explicit message on /list buffer when the list of channels is empty (issue #2133 )
2024-06-09 18:34:35 +02:00
Sébastien Helleu
85c8866407
relay: add option addreplace in command /remote (issue #2095 )
2024-06-09 16:58:37 +02:00
Sébastien Helleu
337c9c840d
relay: add option addreplace in command /relay (issue #2095 )
2024-06-09 16:58:25 +02:00
Sébastien Helleu
eaead31b11
irc: add option addreplace in command /server (issue #2095 )
2024-06-09 16:58:12 +02:00
Sébastien Helleu
a8525b41b3
irc: add option addreplace in command /notify (issue #2095 )
2024-06-09 16:58:00 +02:00
Sébastien Helleu
b7d2bd5c9e
irc: add option addreplace in command /ignore (issue #2095 )
2024-06-09 16:57:44 +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
b45584114f
core: remove "breaking" tag in ChangeLog
2024-06-09 16:53:36 +02:00
Krzysztof Korościk
37eda67776
updated polish translation
...
Signed-off-by: Krzysztof Korościk <soltys@soltys.info >
2024-06-09 14:51:39 +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
6499d77e1d
alias: add options addreplace and addreplacecompletion in command /alias (issue #2095 )
...
The commands `/alias add` and `/alias addcompletion` now return an error if the
alias already exists.
2024-06-09 10:15:44 +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
6306bac20b
core: fix French translation of parameter "refresh" in /help item
2024-06-09 09:06:55 +02:00
Sébastien Helleu
843dcd49b5
tests: add more tests on function string_split_shell
2024-06-08 14:24:43 +02:00
LuK1337
44238650bc
tests: relay: fix relay_http_parse_header function prototype
2024-06-07 12:39:40 +02:00
Sébastien Helleu
6b7137aa25
tests: reset option relay.network.websocket_allowed_origins after changing it in tests ( closes #2127 )
...
This fixes a test failure when the test changing the option is executed before
this one:
…/tests/unit/plugins/relay/api/test-relay-api-protocol.cpp:799: error: Failure in TEST(RelayApiProtocolWithClient, RecvJson)
expected <HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: Z5uTZwvwYNDm9w4HFGk26ijp/p0=
>
but was <HTTP/1.1 403 Forbidden
Content-Length: 0
>
difference starts at position 9 at: < HTTP/1.1 403 Forbid>
2024-06-07 12:33:17 +02:00
Sébastien Helleu
3d20ad8b5c
doc/user: mention pkgconf with pkg-config in dependencies
2024-06-07 07:44:39 +02:00
Sébastien Helleu
da97614e03
ci: install pkg-config with homebrew
2024-06-07 07:44:03 +02:00
Sébastien Helleu
c6481451cb
ci: replace package pkg-config by pkgconf
2024-06-07 07:38:05 +02:00
Sébastien Helleu
f59eb83da4
debian: update changelog
2024-06-06 22:51:09 +02:00
Sébastien Helleu
2648d87a65
debian: replace pkg-config build dependency by pkgconf
2024-06-06 22:50:33 +02:00
Sébastien Helleu
1a21ab10fa
core: add version 4.3.2 in ChangeLog
2024-06-06 22:09:02 +02:00
Sébastien Helleu
396f47e9ae
xfer: fix display of input prompt in DCC chat buffers (issue #2128 )
2024-06-06 13:30:25 +02:00
Sébastien Helleu
0b1e940829
irc: fix display of input prompt in private buffers ( closes #2128 )
2024-06-05 21:03:44 +02:00
Sébastien Helleu
7cf45707ea
tests: add test on info "irc_buffer" with a valid server and a non-existing channel
2024-06-02 23:08:03 +02:00
Sébastien Helleu
f104b4119a
irc: don't return pointer to irc server if the channel or nick is not found in info "irc_buffer"
2024-06-02 22:49:41 +02:00
Sébastien Helleu
4d0378d579
core: fix style for breaking changes in ChangeLog
2024-06-02 22:48:00 +02:00
Sébastien Helleu
a12419b888
core: add link to issue #1549 for ChangeLog entries about permessage-deflate
2024-06-02 09:54:47 +02:00
Sébastien Helleu
26fa0ea1b8
relay: enable websocket extension "permessage-deflate" with "api" relay only
2024-06-02 09:05:40 +02:00
Krzysztof Korościk
7b90b1fbf4
doc: update polish translation
2024-06-01 22:23:05 +02:00
Krzysztof Korościk
61f31eafcf
core: update polish translation
2024-06-01 22:07:06 +02:00
Sébastien Helleu
9264803bc3
relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters
2024-06-01 15:15:01 +02:00
Sébastien Helleu
d05df9ee21
relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure
2024-06-01 14:42:55 +02:00
Sébastien Helleu
8dad5403ee
relay: add quotes around protocol names in options, mention "api" before "weechat"
2024-06-01 13:05:27 +02:00
Sébastien Helleu
e39a309365
relay: add option relay.network.websocket_permessage_deflate
2024-06-01 12:58:17 +02:00
Nils Görs
b5b063a836
core: update German translations
2024-05-31 20:33:09 +02:00
Sébastien Helleu
2dd083554b
core: remove duplicate entry in upgrade guidelines
2024-05-31 13:58:25 +02:00
Sébastien Helleu
d6e69792ca
core: add version 4.3.1 in ChangeLog and upgrade guidelines
2024-05-31 13:45:34 +02:00
Sébastien Helleu
cd75ad0545
core: add version 4.2.3 in ChangeLog
2024-05-31 13:44:06 +02:00
Sébastien Helleu
d6ffe1857b
doc/api: fix typo in function string_cut
2024-05-31 12:24:33 +02:00
Sébastien Helleu
b38cf0e9a3
relay: use API function string_cut to truncate raw relay messages
...
This is faster than the custom function that was adding " (...) " in the middle
of the message.
2024-05-31 12:04:13 +02:00
Sébastien Helleu
768416983c
xfer: fix send of data on the DCC chat buffer after /upgrade if the buffer was opened before the upgrade ( closes #2092 )
2024-05-31 08:11:55 +02:00
Nils Görs
ce1fc02dee
core: update German translations
2024-05-29 23:22:31 +02:00
Sébastien Helleu
e841c11b54
relay: add option relay.look.raw_messages_max_length (issue #2122 )
2024-05-29 23:07:58 +02:00
Sébastien Helleu
6152812bff
doc/user: add internal links to commands and options
2024-05-29 21:14:25 +02:00
Nils Görs
5cff9c0e46
core: update German translations
2024-05-27 22:27:27 +02:00
Sébastien Helleu
bd8e0d8bfa
relay/remote: add translations for some messages displayed
2024-05-27 21:46:24 +02:00
Sébastien Helleu
3d39f7e86c
core: remove versions without upgrade guidelines
2024-05-27 12:12:24 +02:00
Sébastien Helleu
030d82148c
core: update examples in Debian build script
2024-05-27 08:58:56 +02:00
Sébastien Helleu
bf4e47b9f2
core: fix detection of libgcrypt ≥ 1.11 (debian #1071960 )
...
Use pkg-config to detect libgcrypt, since command `libgcrypt-config` is not
available any more.
Remove patches for Debian/Raspbian Buster and Ubuntu Bionic: detection of
libgcrypt don't work any more with version 1.8.4 on Debian Buster and 1.8.1 on
Ubuntu Bionic (both versions don't provide the file `libgcrypt.pc`).
2024-05-27 08:15:59 +02:00
Sébastien Helleu
85c02e9137
irc: close /list buffer when the server buffer is closed ( closes #2121 )
2024-05-27 07:40:03 +02:00
Sébastien Helleu
8d86d85b66
relay: fix compiler warnings when cJSON is disabled
2024-05-26 23:46:52 +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
96f9942aed
php: fix return value of function hdata_longlong
2024-05-26 16:24:16 +02:00
Sébastien Helleu
449e5ae705
core: add link to issues in ChangeLog
2024-05-26 16:05:56 +02:00
Sébastien Helleu
51d2d71a04
core: update ChangeLog
2024-05-26 16:02:46 +02:00
LuK1337
4e01c077d6
tcl: fix return value for hdata_longlong
...
Using API_RETURN_LONG() here breaks tests on i368.
2024-05-26 15:59:12 +02:00
Sébastien Helleu
917054c58d
tests: fix compilation of tests on Rocky 9.4
2024-05-26 15:41:52 +02:00
Sébastien Helleu
d1ae17a8e0
core: add note about lag in buflist in upgrade guidelines
2024-05-26 14:37:48 +02:00
Sébastien Helleu
d616f5bc55
core: update ChangeLog
2024-05-26 14:10:10 +02:00
LuK1337
14187b3834
tests: relay: fix HotlistToJson test on s390x
...
1: error: Failure in TEST(RelayApiMsg, HotlistToJson)
1: expected <2024-05-26T10:29:37.716512Z>
1: but was <2024-05-26T10:29:37.000000Z>
1: difference starts at position 20 at: <T10:29:37.000000Z >
2024-05-26 14:03:04 +02:00
LuK1337
9bd1ea1e5e
tests: scripts: fix wrong ifdef check
2024-05-26 14:00:07 +02:00
LuK1337
6f774a8e8e
tests: relay: add missing <string.h> include
...
Fixes build error on Fedora 40.
2024-05-26 13:58:35 +02:00
Sébastien Helleu
62ab68715d
relay: add infos "relay_api_version" and "relay_api_version_number"
2024-05-26 10:44:23 +02:00
Sébastien Helleu
603c44a64d
core: replace emails by links to GitHub accounts in AUTHORS.md
2024-05-26 10:27:30 +02:00
Sébastien Helleu
a86c329b4c
core: rename and convert AUTHORS.adoc to AUTHORS.md
2024-05-26 10:27:30 +02:00
Sébastien Helleu
d0d1d2e4b9
core: rename and convert README.adoc to README.md
2024-05-26 10:27:30 +02:00
Sébastien Helleu
5d0784bd52
core: rename and convert Contributing.adoc to CONTRIBUTING.md
2024-05-26 10:27:30 +02:00
Sébastien Helleu
3653f4b7a2
core: rename and convert ReleaseNotes.adoc to UPGRADING.md
2024-05-26 10:27:25 +02:00
Sébastien Helleu
8260421767
core: rename and convert ChangeLog.adoc to CHANGELOG.md
2024-05-26 10:26:23 +02:00
Sébastien Helleu
688c77d9f5
Version 4.4.0-dev
2024-05-26 09:21:28 +02:00
Sébastien Helleu
b407de4c3b
Version 4.3.0
2024-05-26 09:16:17 +02:00
Sébastien Helleu
8444670ef1
relay/api: set API version to 0.1.0 in OpenAPI document
2024-05-26 08:39:28 +02:00
Sébastien Helleu
657805ca25
core: add relay options renamed in release notes
2024-05-26 08:24:08 +02:00
Sébastien Helleu
12378b3a19
relay/api: set API version to 0.1.0
2024-05-26 00:04:28 +02:00
Sébastien Helleu
7684d5a3d1
tests: add test of IRC message split with newline but no server
2024-05-25 19:48:41 +02:00
Sébastien Helleu
2488466b0c
irc: fix crash in split of IRC message containing a newline if the server is not given
2024-05-25 19:28:49 +02:00
Sébastien Helleu
647ca0c047
tests: remove dead assignments
2024-05-25 19:22:13 +02:00
Sébastien Helleu
1452497b32
tests: fix tests on hook_infolist_get with an invalid pointer
2024-05-25 19:13:08 +02:00
Sébastien Helleu
2c7057bf22
relay/remote: fix relay API version comparison with a string that can be NULL
2024-05-25 19:11:25 +02:00
Krzysztof Korościk
e97dc832e5
doc: updated polish translation
2024-05-25 13:57:13 +02:00
Krzysztof Korościk
7b4d374efd
core: updated polish translation
2024-05-25 13:35:09 +02:00
Sébastien Helleu
5294249515
relay: fix compiler warning in call to snprintf
...
This fixes the following warning emitted by gcc:
…/relay-http.c:1207:32: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=]
1207 | "%s[%d bytes data]",
| ^~
1208 | str_header,
| ~~~~~~~~~~
…/relay-http.c:1207:31: note: directive argument in the range [1, 2147483647]
1207 | "%s[%d bytes data]",
| ^~~~~~~~~~~~~~~~~~~
…/relay-http.c:1206:21: note: ‘snprintf’ output between 15 and 1047 bytes into a destination of size 64
1206 | snprintf (raw_message, length_raw,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1207 | "%s[%d bytes data]",
| ~~~~~~~~~~~~~~~~~~~~
1208 | str_header,
| ~~~~~~~~~~~
1209 | *ptr_body_size);
| ~~~~~~~~~~~~~~~
2024-05-24 21:08:10 +02:00
Nils Görs
2b81cce9e0
doc: update German documentation
2024-05-24 11:02:16 +02:00
Nils Görs
8814d1d5c4
core: update German translations
2024-05-24 10:45:50 +02:00
Sébastien Helleu
4a4fbce5dd
core: update translations
2024-05-23 21:03:43 +02:00
Sébastien Helleu
f4a789c327
core: rename Twitter to X in README
2024-05-23 21:01:12 +02:00
Sébastien Helleu
037afc5e92
core: remove release notes for versions where no manual action is required upon upgrade
2024-05-22 00:36:23 +02:00
Sébastien Helleu
17435d5532
core: group changes and sort them by importance in ChangeLog
...
Changes are now grouped by category:
- `Changed`: changes in existing features
- `Added`: new features
- `Removed`: removed features
- `Fixed`: bug fixed
Changes are also sorted by importance: breaking changes and most important
changes first in each category.
Link to release notes is mentioned in each release for which manual actions are
required upon upgrade.
2024-05-21 23:40:53 +02:00
Sébastien Helleu
6704b1b21c
core: add missing list header in v4.0.1
2024-05-21 21:42:55 +02:00
Sébastien Helleu
cb08919baf
relay/openapi: add note about websocket connection in sync endpoint
2024-05-19 15:49:37 +02:00
Sébastien Helleu
c67eb4e656
relay/openapi: remove example from description
2024-05-19 15:48:45 +02:00
Sébastien Helleu
9605501c66
relay/openapi: add complete description for authentication, add header "x-weechat-totp"
2024-05-19 15:31:16 +02:00
Sébastien Helleu
e9c14d6548
relay/openapi: replace "summary" by "description" in paths
2024-05-19 14:23:36 +02:00
Sébastien Helleu
54f2c7f2e0
doc/user: add relay "api" (issue #2066 )
2024-05-19 13:26:47 +02:00
Sébastien Helleu
44ca4b41f3
relay/remote: check that remote API is exactly the same version as local one upon connection
2024-05-19 11:26:50 +02:00
Sébastien Helleu
cc544e3e3a
relay/remote: fix error displayed when an error happens in a callback
2024-05-19 10:52:26 +02:00
Krzysztof Korościk
a749e3423f
core: updated polish translation
2024-05-18 17:52:14 +02:00
Sébastien Helleu
8949a65f52
relay/remote: fix highlight on lines received from remote
2024-05-18 09:51:39 +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
839ffc4b0c
irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer
2024-05-16 08:23:28 +02:00
Sébastien Helleu
5c79933faa
core: add bar item "lag"
...
This bar item is overridden by the irc bar item with the same name, but it used
on relay remote buffers, so that the lag is visible as well.
2024-05-16 07:58:52 +02:00
Sébastien Helleu
47f40f961a
relay/remote: add, update and remove buffer local variables received from remote
2024-05-16 07:45:02 +02:00
Sébastien Helleu
1100b0e694
relay/remote: set "input" and "input_pos" only upon buffer creation
...
This prevents unexpected updates of input on remote buffer whenever something
changes in the buffer, like a local variable, but with the same unchanged
input.
2024-05-16 07:22:24 +02:00
Sébastien Helleu
761d2dec12
core: send signal "buffer_localvar_{added|changed}" only if local variable has been added or changed
2024-05-16 07:16:11 +02:00
Sébastien Helleu
6db01bee34
ci: add tests of OpenAPI document with schemathesis
2024-05-15 21:25:50 +02:00
Sébastien Helleu
4c565413bb
relay/api: add OpenAPI document (issue #2066 )
2024-05-15 21:20:22 +02:00
Nils Görs
b916ed6cf7
core: update German translations
2024-05-15 18:07:34 +02:00
Sébastien Helleu
484abc68fc
relay: add option "autoconnect" in remote
...
This option enables auto-connection to the remote, unless command line option
`-a` (`--no-connect`) is given.
2024-05-14 22:27:11 +02:00
Nils Görs
f116061868
core: update German translations
2024-05-14 08:48:20 +02:00
Sébastien Helleu
878c0a5d66
irc: allow range in commands /unban and /unquiet ( closes #2113 )
2024-05-13 23:05:39 +02:00
Sébastien Helleu
8009b21803
irc: use dynamic string in function irc_command_mode_masks
2024-05-13 22:50:42 +02:00
Sébastien Helleu
05e12c0232
core: update French translations
2024-05-13 22:50:42 +02:00
Sébastien Helleu
8de2a36ac2
relay: add protocol "api" in completion of command "/relay add"
2024-05-12 22:16:14 +02:00
Sébastien Helleu
539a51f9e1
relay/api: add different return codes for callbacks
2024-05-12 22:11:41 +02:00
Sébastien Helleu
3aec35aeec
relay/remote: set modes on buffer event
2024-05-12 12:46:32 +02:00
Sébastien Helleu
3bfb7d7f04
relay/api: add field "modes" in GET /api/buffers
2024-05-12 12:46:32 +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
fb4d2d30f4
irc: remove redefinition of bar item "buffer_modes"
...
The new buffer property "modes" is used instead.
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
e57777acb1
doc/api: translate buffer property "input_prompt" to French
2024-05-12 08:48:16 +02:00
Sébastien Helleu
fa07d98f06
doc/api: add version 4.3.0 for signal "input_prompt_changed"
2024-05-12 08:42:36 +02:00
Sébastien Helleu
c1083d022d
irc: restore input prompt after upgrade on server and channel buffers
2024-05-12 01:31:54 +02:00
Sébastien Helleu
464b019929
core: restore buffer input prompt on /upgrade
2024-05-12 01:31:54 +02:00
Sébastien Helleu
1a0b9427e0
core: fix conversion of WeeChat bar colors to ANSI colors
2024-05-11 14:05:52 +02:00
Sébastien Helleu
32b01a606c
core: fix conversion of WeeChat "default" color to ANSI color
2024-05-11 14:05:52 +02:00
Sébastien Helleu
a456c3db86
tests: split strings with colors for readability
2024-05-11 14:05:52 +02:00
Sébastien Helleu
77145d32ad
relay/remote: set input prompt on buffer event
2024-05-11 14:05:52 +02:00
Sébastien Helleu
cdeac1b693
relay/api: add field "input_prompt" in GET /api/buffers
2024-05-11 14:05:52 +02:00
Sébastien Helleu
827a056790
irc: remove redefinition of bar item "input_prompt"
...
The new buffer property "input_prompt" is used instead.
2024-05-11 14:05:52 +02:00
Sébastien Helleu
7634774327
core: add buffer property "input_prompt"
2024-05-10 08:54:03 +02:00
Sébastien Helleu
e69cffd9bc
irc: fix nick comparison in function irc_server_set_nick
2024-05-10 08:27:41 +02:00
Sébastien Helleu
5991278637
irc: rename function irc_server_buffer_set_input_multiline to irc_server_set_buffer_input_multiline
2024-05-09 15:55:31 +02:00
Sébastien Helleu
1a8c40826e
core: refresh buffer only if nicklist_display_groups has changed
2024-05-08 13:29:12 +02:00
Sébastien Helleu
d14bc12282
core: refresh buffer only if nicklist has changed
2024-05-08 13:28:47 +02:00
Sébastien Helleu
0c9bbb5d4f
core: refresh buffer only if time_for_each_line has changed
2024-05-08 13:28:24 +02:00
Sébastien Helleu
df52b57c33
core: add function gui_buffer_set_filter
2024-05-08 13:23:50 +02:00
Sébastien Helleu
7addd1bf00
core: add function gui_buffer_set_input
2024-05-08 13:19:40 +02:00
Sébastien Helleu
28f75d17dc
tests: add placeholder for tests on function gui_buffer_set_input_get_any_user_data
2024-05-08 13:19:15 +02:00
Sébastien Helleu
1050ba851f
core: fix buffer title comparison in function gui_buffer_set_title
2024-05-08 12:50:08 +02:00
Sébastien Helleu
103684b15e
core: merge conditions in function gui_buffer_set_type
2024-05-08 12:49:17 +02:00
Sébastien Helleu
7546ee08ca
core: fix buffer short name comparison in function gui_buffer_set_short_name
2024-05-08 12:48:21 +02:00
Sébastien Helleu
1aeea38355
core: fix buffer name comparison in function gui_buffer_set_name
2024-05-08 12:09:26 +02:00
Sébastien Helleu
9ce666fc31
core: check that buffer is not NULL in function gui_input_set_pos
2024-05-08 12:08:50 +02:00
Sébastien Helleu
b2c7682242
core: add function gui_buffer_set_notify
2024-05-08 12:08:50 +02:00
Sébastien Helleu
2aa1b950cd
core: add function gui_buffer_set_day_change
2024-05-08 12:08:50 +02:00
Sébastien Helleu
0df1cde496
tests: fix typo in comment
2024-05-08 09:30:33 +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
Sébastien Helleu
4d0458afdd
relay/remote: set input multiline on buffer event
2024-05-07 21:38:43 +02:00
Sébastien Helleu
92dfd2425f
relay/remote: set buffer input and cursor position on buffer event
2024-05-07 21:38:24 +02:00
Ivan Pešić
be621205e9
doc: update Serbian translation
2024-05-07 18:59:40 +02:00
Ivan Pešić
4ad497ce01
core: update Serbian translation
2024-05-07 18:59:40 +02:00
Sébastien Helleu
da8353c54f
relay: change default value of option "relay.network.commands" to *,!quit
2024-05-07 13:58:31 +02:00
Sébastien Helleu
44c96f6abf
relay/remote: reuse an existing remote buffer
2024-05-05 23:57:46 +02:00
Sébastien Helleu
177b0a4299
relay/remote: synchronize input with remote relay
2024-05-05 23:57:02 +02:00
Sébastien Helleu
75270d7841
relay/api: add optional synchronization of input
2024-05-05 23:56:33 +02:00
Sébastien Helleu
6526cc230a
relay/api: add input fields in GET /api/buffers
...
New fields returned:
- "input" (string): content of input
- "input_position" (integer): position in input (starts at 0)
- "input_multiline" (boolean): true if the buffer allows multiline input
2024-05-05 23:07:42 +02:00
Sébastien Helleu
211cd11c2a
relay/api: add parameter "lines_free" in GET /api/buffers
...
This parameter is the number of lines to return for buffers with free content.
Its default value is `0` if "lines" is set to `0`, otherwise all buffer lines
are returned.
2024-05-05 22:30:04 +02:00
Sébastien Helleu
9ceea3697b
relay/api: fix read of buffer lines when lines parameter is LONG_MIN
2024-05-05 17:49:20 +02:00
Sébastien Helleu
0cf504dce7
tests: add test on relay API preflight request (OPTIONS)
2024-05-05 14:13:03 +02:00
Sébastien Helleu
6839974a07
tests: fix relay API protocol tests
2024-05-05 11:37:05 +02:00
Sébastien Helleu
25e3a631b9
relay/api: reply to preflight request OPTIONS received from browsers (CORS)
...
This adds the support of Cross-Origin Resource Sharing (CORS) in the relay HTTP
API.
2024-05-05 11:08:37 +02:00
Sébastien Helleu
998bb89c98
relay/api: send all nicks when a buffer is opened
2024-05-04 13:58:01 +02:00
Sébastien Helleu
ccf23ae51e
relay/remote: run callback based on event name instead of body type
2024-05-04 13:43:03 +02:00
Sébastien Helleu
6321669cd5
relay/remote: clear remote buffer when event "buffer_cleared" is received
2024-05-04 12:35:10 +02:00
Sébastien Helleu
586e66d6fa
tests: add placeholders for tests on relay api remote event functions
2024-05-04 11:41:23 +02:00
Sébastien Helleu
a21fa3359d
relay/remote: fix close of remote buffer
2024-05-04 11:40:49 +02:00
Sébastien Helleu
4ac120e435
relay/remote: fix alignment of variable in debug print to log file
2024-05-04 08:55:57 +02:00
Sébastien Helleu
b21b64bc44
relay/remote: do not display error if the buffer is not found in a line/nick event
2024-05-04 08:39:56 +02:00
Sébastien Helleu
68ff525d2e
relay/api: do not relay any signal received on a relay buffer
...
This fixes a creation of multiple fset buffers on remote when /fset is used on
the server.
2024-05-03 19:12:43 +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
9f7b4c497e
core: remove unused variable "used"
2024-05-03 07:15:55 +02:00
Sébastien Helleu
d85205ca8a
irc: remove unneeded parameter in call to irc_list_alloc()
2024-05-03 07:12:34 +02:00
Sébastien Helleu
06d10ad193
core: fix prototype of function "resizeterm" in fake ncurses interface
2024-05-02 21:44:01 +02:00
Sébastien Helleu
8f86f319ca
relay: fix use of uninitialized variable "ptr_buffer"
2024-05-02 21:40:14 +02:00
Sébastien Helleu
fef2ecec9b
relay: remove unused variable "i"
2024-05-02 21:37:03 +02:00
Sébastien Helleu
cf42c7da38
alias: remove unused variable "args_count"
2024-05-02 21:34:50 +02:00
Nils Görs
9e6b9ca54d
core: update German translations
2024-05-02 07:42:53 +02:00
Krzysztof Korościk
d22c3344d4
doc: updated polish translation
2024-05-02 00:13:37 +02:00
Krzysztof Korościk
93064b8401
po: updated polish translation
2024-05-02 00:06:57 +02:00
Sébastien Helleu
573f1046ac
core: execute command as user data for local keys in buffer (issue #2066 )
...
If buffer->input_get_any_user_data is set to 1, any command executed via a
buffer local key is considered as user input and then sent to the buffer
callback, instead of being executed directly.
This is used on relay remote buffers, to execute the command on the remote
instead of locally.
2024-05-01 15:07:08 +02:00
Sébastien Helleu
3aeea2d6aa
relay/remote: set buffer local keys (issue #2066 )
2024-05-01 13:53:58 +02:00
Sébastien Helleu
afe037c579
relay/api: add buffer keys in GET /api/buffers (issue #2066 )
2024-05-01 13:53:58 +02:00
Sébastien Helleu
c5268bc5f9
core: send signal "buffer_line_added" on buffers with free content (issue #2066 )
...
The signal "buffer_line_added" is now sent for every line added or modified on
a buffer with free content.
2024-05-01 13:37:49 +02:00
Sébastien Helleu
c47e4fa883
relay/remote: display lines on buffers with free content (issue #2066 )
2024-05-01 13:37:45 +02:00
Sébastien Helleu
6c1f21f10c
relay: add option relay.api.remote_get_lines (issue #2066 )
2024-05-01 10:10:36 +02:00
Sébastien Helleu
ee3fb67a0c
relay/api: add support of nicklist in remote buffers
2024-04-30 00:08:41 +02:00
Sébastien Helleu
b8f6468590
relay/api: add color names for groups and nicks in GET /api/buffers
2024-04-29 22:43:38 +02:00
Sébastien Helleu
de24921609
relay/api: add nicklist boolean fields in GET /api/buffers
2024-04-29 22:05:47 +02:00
Sébastien Helleu
1d9cdba58e
relay/api: rename field "nicklist" to "nicklist_root" in GET /api/buffers
2024-04-29 21:56:38 +02:00
Sébastien Helleu
9cd7fd38a9
api: allow to set nicklist group/nick id in functions nicklist_group_set and nicklist_nick_set (issue #2081 )
2024-04-29 21:07:04 +02:00
Sébastien Helleu
ded599b272
api: allow search by group and nick id in functions nicklist_search_group and nicklist_search_nick (issue #2081 )
2024-04-29 19:22:57 +02:00
Sébastien Helleu
6c706caa50
tests/gui: add tests on nicklist functions
2024-04-28 22:31:37 +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
96ff7248ef
core: remove obsolete function gui_nicklist_get_max_length
2024-04-28 19:10:05 +02:00
Sébastien Helleu
eac442a855
core: remove unnecessary condition in function gui_nicklist_get_group_start
2024-04-28 19:06:48 +02:00
Sébastien Helleu
f1fa143b21
core: check that parameter name is not NULL in function gui_nicklist_get_group_start
2024-04-28 19:06:21 +02:00
Sébastien Helleu
dcd872bc45
core: fix recursive search of group in nicklist
2024-04-28 13:07:08 +02:00
Sébastien Helleu
4a058ae0f5
trigger: remove check of NULL pointers before calling trigger_free() (issue #865 )
2024-04-26 21:24:14 +02:00
Sébastien Helleu
2b919b0a01
script: remove check of NULL pointers before calling script_repo_free() (issue #865 )
2024-04-26 21:23:39 +02:00
Sébastien Helleu
9c3eda660d
relay: remove check of NULL pointers before calling relay_websocket_deflate_free() (issue #865 )
2024-04-26 21:23:39 +02:00
Sébastien Helleu
17090ade74
relay: remove check of NULL pointers before calling relay_server_free() (issue #865 )
2024-04-26 21:22:50 +02:00
Sébastien Helleu
ba97a39565
relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865 )
2024-04-26 21:22:49 +02:00
Sébastien Helleu
42cba25453
exec: remove check of NULL pointers before calling exec_free() (issue #865 )
2024-04-26 21:21:48 +02:00
Sébastien Helleu
7438d2c737
alias: remove check of NULL pointers before calling alias_free() (issue #865 )
2024-04-26 21:21:48 +02:00
Sébastien Helleu
ed48819b77
core: remove check of NULL pointers before calling gui_focus_free_info() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
2c300424b4
core: remove check of NULL pointers before calling gui_color_palette_free() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
3e520cb1ff
core: remove check of NULL pointers before calling gui_completion_free() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
114084a4fc
relay: remove check of NULL pointers before calling weechat_completion_free() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
1a31512503
core: remove check of NULL pointers before calling string_free_split_tags() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
a7b21fa647
core: remove check of NULL pointers before calling gui_bar_window_free() (issue #865 )
2024-04-26 21:18:24 +02:00
Sébastien Helleu
890caf4e8e
core: remove check of NULL pointers before calling gui_bar_item_free() (issue #865 )
2024-04-26 21:17:13 +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
a59fa70a94
irc: remove check of NULL pointers before calling weechat_list_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
ee51e6c05f
plugins: remove check of NULL pointers before calling weechat_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
561dd92d8e
plugins: remove check of NULL pointers before calling weechat_config_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
7af01a56ca
plugins: remove check of NULL pointers before calling weechat_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
Sébastien Helleu
9a5a1fb300
plugins: remove check of NULL pointers before calling weechat_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
0b2d9bcb9b
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
1ad0b4b669
core: remove check of NULL pointers before calling unhook() (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
529a22e342
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
828ca37225
tests: split hook tests into multiple files (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
6cf163f00c
tests: move hook modifier tests to a separate file (issue #865 )
2024-04-26 07:51:49 +02:00
Sébastien Helleu
2b6fbe26ac
core: remove check of NULL pointers before calling arraylist_free() (issue #865 )
2024-04-26 07:37:22 +02:00
Sébastien Helleu
3eed74a75c
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865 )
2024-04-26 07:37: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
Sébastien Helleu
b56b34711d
api: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
590d9453a0
xfer: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
ea85d180e5
trigger: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
0e3b6a9c77
tcl: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
1f104d06a0
spell: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
3973258628
script: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
f79153ace7
ruby: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
7ee57af8e3
relay: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
b138510cff
python: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
c472b9a733
php: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
0ac2e54b46
perl: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
3e994e3c5a
lua: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
128d2a4e12
logger: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
846c785531
javascript: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
2bbf289635
irc: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
f3a9bfe55e
guile: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
852b8a5cdb
fset: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
1ae33517e9
fifo: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
5ad977a6ed
exec: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
f92606a317
charset: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
c3750a02e3
buflist: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:58:31 +02:00
Sébastien Helleu
c242c8e3f9
alias: remove check of NULL pointers before calling free() (issue #865 )
2024-04-24 23:12:05 +02:00
Sébastien Helleu
4baf0e8526
relay: add final '\0' in body when parsing HTTP response
...
This fixes tests on Debian GNU/Hurd.
2024-04-24 21:24:51 +02:00
Sébastien Helleu
1e08b1119a
relay: fix default value of remote options
2024-04-23 22:57:57 +02:00
Sébastien Helleu
fb9d677020
doc/api: add changes on functions command and command_options introduced in version 4.0.0
2024-04-23 22:54:00 +02:00
Sébastien Helleu
d0f0a7834d
core: do not color prefix of join/part/quit messages when the nick is offline
2024-04-17 08:32:19 +02:00
Nils Görs
eadb7e95ef
core: update German translations
2024-04-15 13:02:23 +02:00
Nils Görs
634f467c8d
core: update German translations
2024-04-15 11:06:45 +02:00
Sébastien Helleu
c1b49f71a5
core: update French translations
2024-04-14 19:15:59 +02:00
Sébastien Helleu
42b073629d
relay: ignore unused parameter "gnutls_rc"
2024-04-14 19:14:19 +02:00
Sébastien Helleu
731871dd78
relay: remove commented variable
2024-04-14 19:13:47 +02:00
Sébastien Helleu
b7d07840d1
relay: add connection with proxy to remote
2024-04-14 19:12:35 +02:00
Sébastien Helleu
9defa13bbe
relay: remove commented code
2024-04-14 19:12:22 +02:00
Sébastien Helleu
984fdb2b58
relay: add TLS connection to remote, add remote option "tls_verify"
2024-04-14 19:00:05 +02:00
Sébastien Helleu
a4236be509
relay: add missing proxy in output of /remote listfull <name>
2024-04-14 16:14:51 +02:00
Sébastien Helleu
92d27d8676
relay: fix read of remote name in infolist
2024-04-14 15:51:03 +02:00
Sébastien Helleu
e1b1946ee4
relay: add check and change callbacks for remote option "url"
2024-04-14 14:58:26 +02:00
Sébastien Helleu
252787c457
relay: fix memory leak when adding a new remote
2024-04-14 09:14:00 +02:00
Sébastien Helleu
18d32cb613
core: add issue #1747 in ChangeLog
2024-04-13 20:35:24 +02:00
Sébastien Helleu
b909522307
core: update ChangeLog (issue #2106 )
2024-04-12 23:00:57 +02:00
Sébastien Helleu
5eb47ccf53
core: update French translations
2024-04-12 22:59:21 +02:00
90
8c3f16dbe3
core: add support for $XDG_STATE_HOME
2024-04-12 22:57:57 +02:00
Nils Görs
3bfe4e52ca
core: update German translations
2024-04-12 16:41:10 +02:00
Sébastien Helleu
c112d0aafa
tests: add placeholder for tests on function gui_line_is_action
2024-04-11 23:03:44 +02:00
Sébastien Helleu
b0b733a8f0
core: use nick offline color for nick in action message
2024-04-11 22:52:54 +02:00
Sébastien Helleu
ae892d2893
core: use nick offline highlight color for prefix of action message when the nick is offline with a highlight
2024-04-11 22:50:39 +02:00
Sébastien Helleu
90998bd296
relay/api: fix reconnection to remote after disconnection
2024-04-10 21:58:11 +02:00
Sébastien Helleu
976e5e8ae4
relay/api: free hook_url_handshake when disconnecting from remote
2024-04-10 21:57:00 +02:00
Sébastien Helleu
f40f3cfa40
relay/api: add tags in lines displayed in remote buffers
2024-04-10 20:57:16 +02:00
Sébastien Helleu
5046a9b596
relay/api: fix decoding of large websocket frames in remote client ( closes #2107 )
2024-04-09 13:32:34 +02:00
Sébastien Helleu
dbf9068909
relay/api: read data on socket only if connected
2024-04-09 13:15:15 +02:00
Sébastien Helleu
e8081fe4f7
relay/api: free frames after use
2024-04-09 13:13:32 +02:00
Sébastien Helleu
ed2becf8fe
relay: free frames only if they were allocated by function relay_websocket_decode_frame
2024-04-09 13:08:12 +02:00
Sébastien Helleu
f7c27b0801
relay: free all data in remote
2024-04-09 13:02:45 +02:00
Sébastien Helleu
fadf9c47c9
relay/api: use function asprintf in JSON send functions
2024-04-08 19:12:33 +02:00
Sébastien Helleu
a3c9a5b897
relay: fix build when CJSON is disabled
2024-04-08 07:32:03 +02:00
Sébastien Helleu
2fe215276e
core: add version 4.2.2 in ChangeLog and release notes
2024-04-07 19:04:08 +02:00
Sébastien Helleu
419515845d
relay: simplify function relay_auth_check_hash_sha
2024-04-07 17:54:28 +02:00
Sébastien Helleu
5eaac71d25
relay/api: use function asprintf to build string with salt and password
2024-04-07 17:53:42 +02:00
Sébastien Helleu
fd5f42dc06
relay/api: fix authentication with remote using hash algorithm "sha256" or "sha512"
2024-04-07 17:29:35 +02:00
Sébastien Helleu
ec8c4cc042
relay/api: use function asprintf to build key and check websocket reply
2024-04-07 17:22:03 +02:00
Sébastien Helleu
86dea12b71
tests: fix relay/api tests on group and nick colors
2024-04-07 17:22:03 +02:00
Sébastien Helleu
ec3b3d47be
relay/api: convert group/nick color names to the real color code
2024-04-07 16:59:45 +02:00
Sébastien Helleu
8cb302e600
relay: add example with "api" protocol in /help relay (issue #2066 )
2024-04-07 15:33:41 +02:00
Sébastien Helleu
eacd0002dd
relay: add missing line for "api" protocol in /help relay (issue #2066 )
2024-04-07 15:33:36 +02:00
Sébastien Helleu
91a9af72b1
doc: generate doc for all commands except default aliases
2024-04-07 15:28:34 +02:00
Sébastien Helleu
cb6c2fd637
core: update French translations (issue #2066 )
2024-04-07 14:51:09 +02:00
Sébastien Helleu
ef12c93f1b
relay: improve messages displayed (issue #2066 )
2024-04-07 14:49:12 +02:00
Sébastien Helleu
14beee8a91
relay/api: rename field "nicks" to "nicklist" in GET /api/buffers
2024-04-07 13:18:14 +02:00
Sébastien Helleu
7c2f44e74e
relay/api: add nicklist group and nick id in response to GET /api/buffers (issue #2081 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
89fe540b53
core: add unique "id" in nicklist group and nick (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all groups and nicks inside the buffer, and
the same number is never used again in the same buffer, during the lifetime of
the process.
It persists and is unchanged after `/upgrade`.
2024-04-07 13:18:14 +02:00
Sébastien Helleu
40a68549b5
relay: set default value of undefined remote options to empty string instead of NULL (issue #2066 )
...
This fixes the websocket connection to remote that is not initiated after the
successful handshake with the remote relay/api.
2024-04-07 13:18:14 +02:00
Sébastien Helleu
a499b50b7b
relay: add synchronization with remote and handler for events received (issue #2066 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
b6647004a5
relay: do not share content of any relay buffer in api and weechat protocols (issue #2066 )
...
This is to prevent infinite loop when connected to a remote which is the
weechat instance itself.
2024-04-07 13:18:14 +02:00
Sébastien Helleu
2cf66de423
api: add function "asprintf"
2024-04-07 13:18:13 +02:00
Sébastien Helleu
08bc6404eb
doc/api: fix typo: "formattée" -> "formatée"
2024-04-07 13:18:13 +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
3cce916035
relay/api: add fields "displayed" and "notify_level" in lines returned (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
64db1b958d
relay/api: replace direct access to JSON number value by call to function cJSON_GetNumberValue() (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
cb785d5035
relay/api: add "request" and "request_body" in response when connected via websocket (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
9d7e887d8e
relay/api: add "body_type" in response when a body is set and connected via websocket (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
643adecff5
relay: add option send in command /remote (issue #2066 )
...
This can be used to send raw JSON data encapsulated in a websocket frame to the
remote.
Example: /remote send test {"request":"GET /api/version"}
2024-04-07 13:18:13 +02:00
Sébastien Helleu
4460f92727
relay: stop URL address before the first question mark if colon is not found (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
f507be4128
tests: add tests on relay remote functions (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
a3f3c9d09c
relay: check that parameter ws_deflate is not NULL in function relay_websocket_deflate_free (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
90b855e1aa
relay: add connection to remote (issue #2066 )
...
Connection to remote:
- handshake: offer support for all supported hash algorithms
- network connect with a socket
- upgrade to websocket and authenticate with remote (password/TOTP)
- check websocket response
- get list of buffers (not used yet)
Note: connection to remote with TLS or a proxy is not yet supported.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
fd32192464
relay: add option disconnect in command /remote (issue #2066 )
2024-04-07 13:18:10 +02:00
Sébastien Helleu
c2343ecb74
relay: add functions to parse HTTP response (issue #2066 )
2024-04-07 13:16:50 +02:00
Sébastien Helleu
c4c220f0a3
relay: add proxy option in remote (issue #2066 )
2024-04-07 13:16:50 +02:00
Sébastien Helleu
3f993f9422
relay/api: fix style (issue #2066 )
2024-04-07 13:16:50 +02:00
Sébastien Helleu
786f889251
relay: add command /remote, add remote configuration in relay.conf (issue #2066 )
2024-04-07 13:16:47 +02:00
Sébastien Helleu
a89bc85dc0
core: update ChangeLog
2024-04-06 22:47:38 +02:00
Sébastien Helleu
40bfded594
irc: fix display of reply for CTCP request received on a channel when capability echo-message is enabled
2024-04-06 22:44:04 +02:00
Sébastien Helleu
2c3c9a3ee7
tests: rename variable "i" to "echo_message"
2024-04-06 18:29:42 +02:00
Sébastien Helleu
74729ce677
irc: display CTCP reply to a nick in server buffer instead of channel
...
When a CTCP request is received on a channel, WeeChat replies to the nick and
it is now displayed in the server buffer instead of the channel, as the target
is a nick and not a channel.
2024-04-06 16:42:15 +02:00
Sébastien Helleu
d81170b010
tests: add extra tests on received IRC CTCP messages
2024-04-06 16:37:40 +02:00
Sébastien Helleu
f3f9dc388f
core: remove whitespace
2024-04-01 22:23:48 +02:00
Sébastien Helleu
7e997f87e8
core: add cast to "const char *" for hashtable value
2024-04-01 21:48:11 +02:00
Sébastien Helleu
965beb37de
core: fix print of pointer values
2024-04-01 21:08:52 +02:00
Mario Campos
a7c92e2d24
ci: add CodeQL code scanning ( closes #2102 )
2024-04-01 18:42:05 +02:00
Sébastien Helleu
1fb6fda89b
relay: rename function relay_api_search_buffer_id_name to relay_api_protocol_search_buffer_id_name
2024-03-29 13:02:45 +01:00
Nils Görs
a23b5b5a37
core: update German translations, fixed typo
2024-03-28 13:12:19 +01:00
Sébastien Helleu
acef7dd317
relay: move assignment after comment with important note
2024-03-26 21:22:55 +01:00
Sébastien Helleu
3d8607673e
relay: fix typo in comment
2024-03-26 21:22:15 +01:00
Sébastien Helleu
5a3dff1b97
relay: fix typo in comment
2024-03-26 20:23:10 +01:00
Sébastien Helleu
372ffc1690
irc: fix error displayed on connection in case of insufficient memory
2024-03-26 20:22:50 +01:00
Sébastien Helleu
fd06c67b58
relay: add size for array relay_auth_password_hash_algo_name
2024-03-26 10:40:38 +01:00
Nils Görs
0778d37924
core: update German translations
2024-03-26 09:27:00 +01:00
Sébastien Helleu
6e5eb5eb25
fset: fix typo in /help fset
2024-03-26 09:21:04 +01:00
Sébastien Helleu
2f5936bc9f
relay: set the last IRC client disconnection time only after a successful connection ( closes #2103 )
2024-03-26 08:04:49 +01:00
Sébastien Helleu
3db4dd2790
fset: display number of commands executed in imported file, improve errors displayed
2024-03-26 07:46:35 +01:00
Sébastien Helleu
26630ada2d
fset: add option -import in command /fset
2024-03-25 21:00:42 +01: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
Nils Görs
a7f8c32797
core: update German translations
2024-03-25 11:44:01 +01:00
Sébastien Helleu
9bc4352089
core: fix tests on function strftimeval on Alpine
2024-03-24 20:56:29 +01:00
Sébastien Helleu
907643bc9c
core: add option weechat.completion.case_sensitive
2024-03-24 15:40:06 +01:00
Sébastien Helleu
947155f325
doc/user: fix typo in trigger regex replace ${re:+}
2024-03-21 23:04:18 +01:00
Sébastien Helleu
59d8857646
doc/user: add missing ${re:#} and ${re:repl_index} in trigger regex replace
2024-03-21 22:55:28 +01:00
Sébastien Helleu
d6386cd364
doc/api: fix style in example ${re:+}
2024-03-21 22:43:35 +01:00
Nils Görs
7d5503e84b
core: update German translations
2024-03-20 09:56:19 +01:00
Sébastien Helleu
762d71012a
script: add option enable in command /script, improve error displayed when download of scripts is disabled
2024-03-19 20:45:22 +01:00
Sébastien Helleu
7aa5d718a8
core: send signal "hotlist_changed" only if the order of hotlist has changed after sort (issue #2097 )
2024-03-18 21:45:47 +01:00
Sébastien Helleu
77bc38d21d
core: reduce number of re-sort of hotlist (issue #2097 )
...
Restore original signals caught: "buffer_moved" and "buffer_closed", and the
signal "buffer_localvar_*" is added so that any local variable
added/changed/removed triggers a re-sort of hotlist.
2024-03-18 21:44:23 +01:00
Sébastien Helleu
34a72ac02e
relay/api: add GET /api/hotlist
2024-03-17 20:13:19 +01:00
Sébastien Helleu
0b0ab94aa3
tests/gui: add tests on hotlist functions
2024-03-17 15:00:00 +01:00
Sébastien Helleu
c516ff64f2
tests/scripts: make tests fail if a compiled scripting plugin fails to load
2024-03-17 13:45:39 +01:00
Sébastien Helleu
1f47e7c4f8
tests: add missing include of string.h in relay API protocol tests
2024-03-17 10:47:46 +01:00
Nils Görs
f7b8e81941
core: update German translations
2024-03-16 22:57:03 +01:00
Sébastien Helleu
e29f496a96
core: optimize sort of hotlist
...
Entries are not duplicated any more.
2024-03-16 22:25:51 +01:00
Sébastien Helleu
55203680ba
core: don't resort hotlist when signal "hotlist_changed" is sent
2024-03-16 22:25:45 +01:00
Sébastien Helleu
c05b228078
core: sort hotlist and remove buffer even while upgrading
2024-03-16 21:33:08 +01:00
Sébastien Helleu
d462667ee6
core: fix crash on /upgrade when hotlist contains buffers that are closed
2024-03-16 17:24:12 +01:00
Sébastien Helleu
8eafc0624c
core: resort hotlist on any buffer signal (issue #2097 )
2024-03-16 14:43:53 +01:00
Sébastien Helleu
29b502a06a
buflist: fix help on option buflist.look.sort (issue #2097 )
2024-03-16 14:14:28 +01:00
Sébastien Helleu
25a317280f
core: fix typo in option weechat.look.hotlist_sort: time.usec -> time_usec (issue #2097 )
2024-03-16 14:08:07 +01:00
Sébastien Helleu
f856173e1f
core: add option weechat.look.highlight_prefix ( closes #2079 )
2024-03-16 11:32:51 +01:00
Sébastien Helleu
6f660f2430
core: add variable ${highlight} in option weechat.look.buffer_time_format (issue #2079 )
2024-03-16 09:46:55 +01:00
Sébastien Helleu
41fb29bbd0
core: convert option weechat.look.hotlist_sort to a list of fields ( closes #2097 )
2024-03-15 21:44:14 +01:00
Sébastien Helleu
ea86f75319
tests: add hdata tests with struct timeval
2024-03-15 21:32:40 +01:00
Sébastien Helleu
c98d12b4af
core: rename variables with creation time in hdata "hotlist"
...
Variables renamed:
- "creation_time.tv_sec" -> "time"
- "creation_time.tv_usec" -> "time_usec"
2024-03-15 21:32:37 +01:00
Sébastien Helleu
305b046370
core: add macro to define hdata variable with different field and name
2024-03-15 21:32:35 +01:00
Sébastien Helleu
080eecef2c
core: add missing hdata name "buffer" in hdata "hotlist"
2024-03-15 21:32:32 +01:00
Sébastien Helleu
fe01faa9ab
core: update ChangeLog (issue #2093 )
2024-03-13 13:51:22 +01:00
Trygve Aaberge
811390ebb1
core: make search_stop scroll to search start position
...
When you run /input search_stop it should scroll to the scroll position
the buffer was at before starting the search, rather than to the bottom
of the buffer.
Fixes a regression introduced in commit b83b428c5c
Fixes #2093
2024-03-13 13:50:04 +01:00
Sébastien Helleu
dd128dace8
core: update ChangeLog ( closes #1906 )
2024-03-13 13:14:40 +01:00
wfrsk
4d83adc7d8
lua: fix code style
2024-03-13 13:10:07 +01:00
wfrsk
fd541395f4
lua: do not depend on an init script + rework weechat_lua_output
2024-03-13 13:02:29 +01:00
wfrsk
97f87932fe
lua: do not load the debug library
2024-03-13 13:02:29 +01:00
wfrsk
b0581ac1f8
lua: do not depend on luaL_openlibs
2024-03-13 13:02:29 +01:00
Sébastien Helleu
3b9e2f480d
tests: reorder tests on core directory functions
2024-03-13 13:01:50 +01:00
Mario Campos
f76d236015
GUI: fix potential integer overflow bugs by casting to size_t
2024-03-13 09:09:29 +01:00
Mario Campos
1797fe18a3
fset: replace call to chmod() by fchmod() in the export function
2024-03-13 07:19:55 +01:00
Mario Campos
63733d81d8
core: open the file exclusively in compress file functions
...
This also removes the unnecessary call to access() function before the call to
fopen().
2024-03-13 07:17:02 +01:00
Mario Campos
23e0533ea1
core: remove unnecessary call to stat() in hash file function
...
The call to fopen() will fail anyway if the file doesn't exist.
2024-03-13 07:15:12 +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
Sébastien Helleu
bb346f8c6c
relay/api: replace "context" by "buffer_id" (issue #2081 )
2024-03-12 20:37:52 +01:00
Sébastien Helleu
48ca390f79
relay/api: add support of buffer id in POST /api/input (issue #2081 )
2024-03-12 20:37:51 +01:00
Sébastien Helleu
aa989767a1
relay/api: add support of buffer id in GET /api/buffers (issue #2081 )
2024-03-12 20:37:50 +01:00
Sébastien Helleu
7ad3c1979c
tests/relay/api: add buffer id in test of buffer to json function (issue #2081 )
2024-03-12 20:37:48 +01:00
Sébastien Helleu
99f0a2e002
tests/relay/api: add tests on API protocol
2024-03-12 20:37:48 +01:00
Sébastien Helleu
6325add517
tests/relay/irc: use port 9001 for server relay
2024-03-12 20:37:48 +01:00
Sébastien Helleu
e791535773
relay: add a fake send function in client
...
This will be used in unit tests to get the data that is sent to clients.
2024-03-12 20:37:48 +01:00
Sébastien Helleu
0ac377d306
relay/api: add a global variable to customize the command delay in POST /api/input
...
The user can not change this, the variable will be set to 0 in unit tests to
execute the command immediately.
2024-03-12 20:37:48 +01:00
Sébastien Helleu
59c977ddc9
relay/api: check that "request" field is a string in JSON received (websocket connection)
2024-03-12 20:37:48 +01:00
Sébastien Helleu
4f9bcc73ca
relay/api: allow POST /api/handshake without a body
2024-03-12 20:37:48 +01:00
Sébastien Helleu
8c5db76271
relay/api: fix error displayed when buffer is not found in POST /api/input
2024-03-12 20:37:48 +01:00
Sébastien Helleu
80709292d4
tests/relay/irc: fix comments
2024-03-12 20:37:48 +01:00
Sébastien Helleu
f2f6afb59c
tests/relay/irc: remove unused calls to record functions
2024-03-12 20:37:48 +01:00
Sébastien Helleu
3045322822
relay/weechat: add buffer id in signals sent to clients (issue #2081 )
2024-03-12 20:37:47 +01:00
Sébastien Helleu
29d4bc3102
relay/api: add buffer is in response to GET /api/buffers (issue #2081 )
2024-03-12 20:37:45 +01:00
Sébastien Helleu
f9e8c7faab
api: allow search by buffer id in function buffer_search (issue #2081 )
2024-03-12 20:37:44 +01:00
Sébastien Helleu
5af0415508
core: add function gui_buffer_search_by_id (issue #2081 )
2024-03-12 20:37:42 +01:00
Sébastien Helleu
c71e6a50eb
core: rename function gui_buffer_search_by_name to gui_buffer_search (issue #2081 )
2024-03-12 20:37:40 +01:00
Sébastien Helleu
4ffd62b206
core: add unique "id" in buffer (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all buffers, and the same number is never
used again, during the lifetime of the process.
It persists and is unchanged after `/upgrade`.
2024-03-12 20:37:36 +01:00
Sébastien Helleu
afc4dff71b
core: use dynamic string in function infolist_fields
2024-03-12 20:37:36 +01:00
Sébastien Helleu
9e0dd18152
api: add function "hdata_longlong" (issue #2081 )
2024-03-12 20:37:11 +01:00
Nils Görs
c85b57b8b3
core: update German translations
2024-03-12 17:16:36 +01:00
Sébastien Helleu
34e99987bf
doc/user: clarify what is ${nick} in trigger IRC signal data
2024-03-11 07:20:38 +01:00
Sébastien Helleu
1ab62e37cb
api: add modifier "color_decode" to decode WeeChat colors with a replacement string
2024-03-10 09:31:32 +01:00
Sébastien Helleu
3f49b1b44a
core: use whole replacement string instead of first char in function gui_color_decode
2024-03-10 09:21:28 +01:00
Sébastien Helleu
431cf23a0c
exec: remove trailing space on buffers with free content when line numbers are not displayed
2024-03-08 08:19:20 +01:00
Sébastien Helleu
a6c509611a
exec: add missing exec tags in lines of buffers with free content ( closes #2086 )
2024-03-07 21:52:21 +01:00
Nils Görs
ec56a1103f
doc: update German documentation
2024-03-07 12:04:05 +01:00
Nils Görs
ccc5c75a03
core: update German translations
2024-03-07 11:52:22 +01:00
Sébastien Helleu
732887cef7
doc/plugin: add missing translation comments
2024-03-07 07:32:20 +01:00
Sébastien Helleu
cb6ecb6818
core: check if malloc.h is present, independently of function malloc_trim
2024-03-06 23:09:00 +01:00
Sébastien Helleu
70828a7dd1
irc: add option -all in command /allchan, do not execute command on parted channels by default ( closes #2085 )
2024-03-06 23:03:02 +01:00
Sébastien Helleu
ab2e29fb0f
core: include header malloc.h only if function malloc_trim is available
2024-03-06 22:52:43 +01:00
Sébastien Helleu
8c1df496ae
core: update translations
2024-03-06 22:41:42 +01:00
Sébastien Helleu
68598de958
core: check that function malloc_trim is available, display an error if not available
2024-03-06 22:36:37 +01:00
Sébastien Helleu
a1bee89ecc
core: add option malloc_trim in command /sys
2024-03-06 22:00:48 +01:00
Sébastien Helleu
7385f767e3
irc: use API config functions to get inherited value (server options)
2024-03-06 21:32:34 +01:00
Sébastien Helleu
5c88ee9c45
core: add support of SGR mouse events, remove option weechat.look.mouse_timer_delay ( closes #2082 )
2024-03-06 20:33:17 +01:00
Nils Görs
a8a0053211
core: update German translations
2024-03-06 11:17:38 +01:00
Sébastien Helleu
12521898f9
doc/scripting: auto-generate list of scripting functions and constants from Python API
2024-03-05 19:58:21 +01:00
Sébastien Helleu
6c72d6f66d
python: add infolists "python_function" and "python_constant"
2024-03-05 19:56:35 +01:00
Sébastien Helleu
81599b88d4
plugins: move scripting API constants to plugin-script.c
2024-03-05 19:52:21 +01:00
Sébastien Helleu
84437ab672
tests: add tests on scripting API constants
2024-03-05 19:52:21 +01:00
Sébastien Helleu
014dc845e8
doc: move script doc/python_stub.py to tools/generate_python_stub.py
2024-03-05 19:52:21 +01:00
Sébastien Helleu
361d55d9d7
api: add functions config_{boolean|integer|string|color|enum}_inherited in scripting API
2024-03-05 19:52:21 +01:00
Sébastien Helleu
8f0b3ab9c7
tests/scripts: fix representation of None Python value in generated scripts
2024-03-05 19:51:15 +01:00
Sébastien Helleu
1451e12c78
core: refactor functions that read values of config options
2024-03-05 19:51:15 +01:00
Sébastien Helleu
6817542f95
tests: add tests on functions that read values of config options
2024-03-05 19:51:15 +01:00
Sébastien Helleu
c3eff15a56
api: add functions config_option_get_string and config_option_get_pointer in scripting API
2024-03-05 19:51:15 +01:00
DasBrain
0bf560f9b7
tcl: simplify return macros
2024-03-05 19:15:19 +01:00
DasBrain
ff2189f3d9
tcl: refactor creation of constants
2024-03-05 19:15:19 +01:00
Nils Görs
439a2d9c7a
core: update German translations
2024-02-26 15:16:42 +01:00
Sébastien Helleu
6d549d0da9
relay/api: rename "salt" to "timestamp"
2024-02-26 12:56:44 +01:00
Sébastien Helleu
22686da40c
doc/api: fix string format in calls to weechat.prnt (examples in Python)
2024-02-25 17:23:09 +01:00
Sébastien Helleu
f649ccc3b8
python: fix truncation of unsigned long long integer returned by function string_parse_size
2024-02-25 17:07:11 +01:00
Sébastien Helleu
c5800178a0
php: remove constants that must not be visible in scripts
2024-02-25 16:32:21 +01:00
Sébastien Helleu
c5887354bd
tcl: fix truncation of long integer returned by function hdata_long
2024-02-25 16:12:54 +01:00
Sébastien Helleu
3f08785aee
core: add missing mouse event "alt-ctrl-button3"
2024-02-24 22:05:14 +01:00
Sébastien Helleu
191701a5f3
doc/user: fix order of mouse event modifiers
...
Key "alt" is always before "ctrl".
2024-02-24 18:53:46 +01:00
Sébastien Helleu
d52fea1d5e
core: fix typo in comment
2024-02-24 18:50:26 +01:00
Sébastien Helleu
24f0e95de7
core: add missing mouse event "alt-ctrl-button2"
2024-02-24 18:35:21 +01:00
Ivan Pešić
40deb493d5
doc: Update Serbian translation
2024-02-23 08:22:26 +01:00
Ivan Pešić
ef2ef9846d
core: Update Serbian translation
...
Some typos are corrected
2024-02-23 08:22:26 +01:00
Trygve Aaberge
e02ee703f0
docs: fix some typos in documentation and comments
2024-02-23 08:21:49 +01:00
Sébastien Helleu
27331dec5e
core: add contributor
2024-02-22 19:30:53 +01:00
Johannes Kuhn
db6b96f629
tcl: make plugin compatible with Tcl 9.0
...
Replace calls to Tcl_GetStringFromObj by Tcl_GetString.
2024-02-22 19:30:53 +01:00
Sébastien Helleu
ef5ebc19e9
fset: allow filename starting with "~" in command /fset -export
2024-02-21 22:05:16 +01:00
Sébastien Helleu
76998665f4
script: always display list of scripts when searching scripts with /script search ( closes #2077 )
2024-02-21 21:36:52 +01:00
Sébastien Helleu
b5a32c0fa9
script: fix default mouse keys ( closes #2076 )
...
Some parameters of command `/script` were renamed in commit
85b5bacfe3 but the default mouse keys were not
changed and still using the old parameters names.
2024-02-21 21:10:25 +01:00
Nils Görs
4c5f98946a
core: update German translations
2024-02-19 20:07:29 +01:00
Sébastien Helleu
a44ffa147f
script: add info "script_loaded"
2024-02-19 18:33:36 +01:00
Sébastien Helleu
a167322d8b
api: add info "plugin_loaded"
2024-02-19 18:29:21 +01:00
Sébastien Helleu
f19808cedd
tests: add tests on "api" relay (general functions and messages)
2024-02-18 23:42:22 +01:00
Sébastien Helleu
0f30a4e020
relay: move functions to get URL parameters from api to relay-http.c, add tests
2024-02-18 23:13:20 +01:00
Sébastien Helleu
9b9b36bb02
tests: fix free of HTTP request
2024-02-18 23:12:56 +01:00
Sébastien Helleu
c4ac9046b2
relay/api: fix comment of function relay_api_protocol_get_param_boolean
2024-02-18 18:52:57 +01:00
Sébastien Helleu
61a8e4e27e
relay/api: add key "visible" with boolean value in nick and group objects
2024-02-18 18:52:52 +01:00
Sébastien Helleu
780be1e1b7
relay/api: rename key "index" to "y" in line object
2024-02-18 18:24:19 +01:00
Nils Görs
4858d88567
core: update German translations
2024-02-17 17:31:57 +01:00
Sébastien Helleu
6659bf1642
core: display the 3 variants for "${split}" and "${split_shell}" in /help eval
2024-02-17 13:23:38 +01:00
Sébastien Helleu
b3a214252b
core: add "${hl:string}" and "${raw_hl:string}" in /eval completions
2024-02-17 13:22:40 +01:00
Sébastien Helleu
4c6db9711a
core: add the different variants for "chars" in /eval completions
2024-02-17 13:22:05 +01:00
Sébastien Helleu
213483e678
core: add the different bases in /eval completions for "base_decode" and "base_encode"
2024-02-17 13:20:17 +01:00
Sébastien Helleu
9b9e0f042c
core: replace "xxx" by "string" and "number" by "N" in /eval completions
2024-02-17 13:09:20 +01:00
Sébastien Helleu
831dcac808
core: list operators by order of priority in /help eval (issue #2005 )
2024-02-17 10:58:40 +01:00
Sébastien Helleu
4e0f7dfd25
core: reintroduce help on the operators in /help eval (issue #2005 )
2024-02-17 10:54:25 +01:00
Sébastien Helleu
a35ac5e8d9
core: reintroduce help on the variables in /help eval (issue #2005 )
2024-02-17 10:08:12 +01:00
Sébastien Helleu
90c87e7553
irc: add missing tags on self action messages when capability echo-message is enabled ( closes #2074 )
2024-02-16 20:58:31 +01:00
Sébastien Helleu
162bcb2622
irc: don't strip monospace color code 0x11 from incoming messages ( closes #2073 )
2024-02-16 19:22:28 +01:00
Nils Görs
8b6452eb91
core: update German translations
2024-02-12 10:56:35 +01:00
Sébastien Helleu
e4e6fde80f
core: add option -s in command /command to execute multiple commands separated by semicolons
2024-02-11 21:48:31 +01:00
Sébastien Helleu
e0ec8da76a
core: move lines from 4.1.0 to 4.2.0 in ChangeLog
2024-02-11 14:32:29 +01:00
Sébastien Helleu
635dd818b5
core: add again line about function hook_url in ChangeLog (issue #1723 )
2024-02-11 14:22:12 +01:00
Sébastien Helleu
0cfc61a17e
irc: add server option "autojoin_delay" ( closes #862 )
...
The server option "autojoin_delay" adds a delay before autojoin.
The server option "command_delay" is now used to add a delay before the
execution of the command.
On upgrade from an old version, the option "command_delay" is copied to
"autojoin_delay" (in old versions, "command_delay" was applied after the
execution of command and before the autojoin).
2024-02-11 09:12:57 +01:00
Sébastien Helleu
f153b6e6c3
relay: change message displayed when there is not enough memory for websocket frame
2024-02-11 08:53:29 +01:00
Sébastien Helleu
9ce435fa5e
relay: add WeeChat version in config update callback
2024-02-11 08:47:56 +01:00
Sébastien Helleu
5a00f1a138
irc: add WeeChat version in config update callback
2024-02-11 08:41:15 +01:00
Sébastien Helleu
9eb3403008
alias: add WeeChat version in config update callback
2024-02-11 08:40:49 +01:00
Sébastien Helleu
e191d9225b
core: add WeeChat version in config update callback
2024-02-11 08:40:25 +01:00
Sébastien Helleu
e08f6aab55
core: add issue #1903 in ChangeLog
2024-02-11 08:39:06 +01:00
Sébastien Helleu
19bf6c9672
tests: fix compiler warning on empty snprintf format
...
This fixes the following warning:
test-core-dir.cpp:178:36: warning: zero-length gnu_printf format string [-Wformat-zero-length]
2024-02-10 19:02:17 +01:00
Sébastien Helleu
e9dbf23a18
trigger: fix memory leak when adding a new trigger with /trigger command
2024-02-10 17:50:24 +01:00
Sébastien Helleu
caa51160da
core: remove trailing directory separators in home directories ( closes #2070 )
2024-02-10 10:23:40 +01:00
Sébastien Helleu
5c6e6f43d1
relay: disable "permessage-deflate" websocket extension when option relay.network.compression is set to 0
2024-02-04 18:54:56 +01:00
Sébastien Helleu
0414c139b0
relay: fix decoding of websocket frame when a partial frame is received
2024-02-04 18:52:00 +01:00
Sébastien Helleu
b7ecf93a22
relay: fix websocket decompression when output buffer is not large enough
2024-02-04 18:23:40 +01:00
Sébastien Helleu
162dc87796
scripts: fix crash on script unload when a hook is created in a buffer close callback ( closes #2067 )
2024-02-04 13:57:35 +01:00
Sébastien Helleu
7f2f60dab0
ci: remove tests on macOS 11
2024-02-03 22:50:27 +01:00
Sébastien Helleu
820a3e8767
relay: free ws_deflate when http request is freed
2024-02-03 11:30:35 +01:00
Sébastien Helleu
052db75805
relay/api: add extra check on JSON types in handshake and input resources (issue #2066 )
2024-02-03 08:38:57 +01:00
Sébastien Helleu
5c869722c1
core: disable CJSON in Debian/buster, Raspbian/buster and Ubuntu/focal builds (issue #2066 )
...
This is because in these versions the libcjson-dev package doesn't provide
pkg-config file.
2024-02-02 08:33:06 +01:00
Sébastien Helleu
bc464679a7
relay: fix build when CJSON is disabled (issue #2066 )
2024-02-02 07:44:57 +01:00
Sébastien Helleu
86685f4af4
core: update translations (issue #2066 )
2024-02-01 21:39:24 +01:00
Sébastien Helleu
6acf1af828
relay/api: add handshake resource, without authentication required (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
3f902dba28
relay: check that request is not NULL before compressing data (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
de72fe1db5
relay/api: fix send of responses 400 and 404 in case of error (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
89aeb03a13
relay: remove request from some function arguments (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
83567fd871
relay: allow password hash authentication in api relay, add option relay.network.time_window (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
70907fc169
relay: rename option relay.weechat.commands to relay.network.commands (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
f126255d6a
core: add support of base64url in encode/decode functions (issue #2066 )
2024-02-01 21:39:21 +01:00
Sébastien Helleu
6cfb31c306
relay: add support of websocket extension "permessage-deflate" ( closes #1549 )
...
This extension is used to compress and decompress websocket frames (using
the DEFLATE algorithm, with zlib).
2024-02-01 21:38:53 +01:00
Sébastien Helleu
8971fc069a
relay: add "api" protocol (HTTP REST API) (issue #2066 )
2024-02-01 21:38:49 +01:00
Krzysztof Korościk
179d53a12e
po: updated Polish translations
2024-01-31 21:16:52 +01:00
Sébastien Helleu
2469dc6df9
core: use function util_strftimeval in evaluation of expression date:xxx
2024-01-27 16:53:53 +01:00
Sébastien Helleu
e3af6a91d4
api: add support of specifier %! for timestamp in function util_strftimeval
2024-01-27 16:53:53 +01:00
Nils Görs
73a1c9753a
core: update German translations
2024-01-27 14:35:34 +01:00
Sébastien Helleu
1ac38a4cf9
core: add support of (?i) for argument "name" in /help buffer
2024-01-24 20:58:44 +01:00
Sébastien Helleu
09e01133d2
core: allow case insensitive search of partial buffer name with (?i)name in command /buffer
2024-01-24 20:54:41 +01:00
Sébastien Helleu
b7735632b8
tests: add tests on buffer properties "opening" and "type"
2024-01-24 20:47:51 +01:00
Sébastien Helleu
da79574ca7
core: return 0 in gui_buffer_is_main if plugin_name or name is NULL
2024-01-24 19:42:08 +01:00
Sébastien Helleu
971d5b6b64
doc/dev: update rules for indentation in C sources
2024-01-22 20:59:51 +01:00
Sébastien Helleu
88d391bca3
core: add version 4.2.1 in ChangeLog and release notes
2024-01-22 20:45:25 +01:00
Sébastien Helleu
fe52f7c78c
tests: remove extra empty line
2024-01-22 13:58:33 +01:00
Sébastien Helleu
06b4e46977
irc: fix random date displayed when a received message contains tags but no "time" ( closes #2064 )
2024-01-22 13:18:25 +01:00
Sébastien Helleu
750e677490
Version 4.3.0-dev
2024-01-21 09:36:44 +01:00
Sébastien Helleu
017d9bd975
Version 4.2.0
2024-01-21 09:33:14 +01:00
Sébastien Helleu
05fdb2929f
tests: add missing format string in calls to snprintf
2024-01-21 09:17:11 +01:00
Sébastien Helleu
d5b61f565e
core: add versions 4.0.8 and 4.1.3 in ChangeLog and release notes
2024-01-20 09:27:35 +01:00
Ivan Pešić
ff1c3d37d1
core: Update Serbian messages
2024-01-15 10:25:17 +01:00
Ivan Pešić
f5a0a6c507
doc: Update Serbian translation
2024-01-15 10:25:17 +01:00
Nils Görs
bee3fb311b
core: update German translations
2024-01-15 07:44:28 +01:00
Sébastien Helleu
3efcdbd521
doc/dev: remove conflict marker in Serbian doc
2024-01-14 00:29:47 +01:00
Sébastien Helleu
869fba9f74
irc: add tests on info functions (issue #2059 )
2024-01-12 17:58:36 +01:00
Sébastien Helleu
becdf76224
irc: check if arguments are not NULL in some infos
...
Affected infos:
- irc_server_isupport
- irc_server_isupport_value
- irc_server_cap
- irc_server_cap_value
2024-01-12 17:57:50 +01:00
Sébastien Helleu
8e252955da
irc: fix info "irc_is_message_ignored" ( closes #2059 )
2024-01-12 17:53:19 +01:00
Sébastien Helleu
71fee810c9
doc/api: add missing properties in functions buffer_get_integer and buffer_get_string
2024-01-06 20:46:30 +01:00
Sébastien Helleu
d8704d5c74
core: add variable "opening" in buffer, do not send buffer signals when the buffer is opening
2024-01-06 19:26:39 +01:00
Krzysztof Korościk
6efa574483
doc: update copyright dates
2024-01-06 16:23:22 +01:00
Krzysztof Korościk
4ffe67eafd
po: updated polish translation
2024-01-06 16:21:25 +01:00
Sébastien Helleu
b5ea82da48
relay/weechat: unhook hook_timer_nicklist when synchronization is stopped
2024-01-06 10:38:54 +01:00
Sébastien Helleu
5df85c7a53
relay: add global relay hdata variables
2024-01-06 09:56:23 +01:00
Sébastien Helleu
57a206287a
irc: fix display of self messages in case of message split failure
...
When the message sends inconsistent max lengths in message 005, the split of
self message fails and causes a display issue: the channel name is displayed
with the message:
nick | #channel :this is a test
instead of:
nick | this is a test
2024-01-05 21:36:58 +01:00
Sébastien Helleu
eb8ca14d83
relay: fix display of raw messages (issue #649 )
2024-01-05 20:30:02 +01:00
Sébastien Helleu
9d9a47f111
core: add support of microseconds in command /print -date (issue #649 )
2024-01-05 19:31:42 +01:00
Sébastien Helleu
4a1e5e7eaa
irc: remove function irc_protocol_parse_time, use API function weechat_util_parse_time (issue #649 )
2024-01-05 19:28:47 +01:00
Sébastien Helleu
f6ba789c3d
api: add function util_parse_time (issue #649 )
2024-01-05 19:09:19 +01:00
Sébastien Helleu
e88882f0ae
irc: display microseconds in some user messages (issue #649 )
2024-01-04 22:29:30 +01:00
Sébastien Helleu
89517d44a5
relay: add microseconds in relay raw messages (issue #649 )
2024-01-04 22:25:13 +01:00
Nils Görs
1875217509
doc: update German documentation
2024-01-04 09:54:04 +01:00
Nils Görs
3dbfa5350d
core: update German translations
2024-01-04 09:49:21 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Krzysztof Korościk
934ef60151
doc: updated polish translation
2024-01-01 18:59:58 +01:00
Krzysztof Korościk
124c5adf62
po: updated polish translation
2024-01-01 16:07:17 +01:00
Faisal N Jawdat
5c65a73432
ruby: add detection for Ruby 3.3
2023-12-26 21:08:50 +01:00
Sébastien Helleu
9fb3d3f14c
core: store microseconds in buffer lines ( closes #649 )
2023-12-26 19:44:37 +01:00
Nils Görs
57f80a4c1f
core: update German translations
2023-12-25 16:45:51 +01:00
Sébastien Helleu
5ccb0c23f9
debian: exclude directories ".git", "build" and "release" from source package
2023-12-24 18:41:38 +01:00
Sébastien Helleu
31881ebacf
api: add property "type" in function buffer_get_string
2023-12-24 16:53:16 +01:00
Sébastien Helleu
28fc733aaf
core: display when zstd is not available in output of /debug libs
2023-12-24 16:50:45 +01:00
Sébastien Helleu
7700228823
relay: move function to check if buffer belongs to relay
2023-12-24 16:27:51 +01:00
Sébastien Helleu
76a3f85831
core: fix typo in ChangeLog
2023-12-15 22:59:20 +01:00
Sébastien Helleu
75dc8b9d6c
core: fix crash on plugin reload when using musl libs ( closes #2052 )
2023-12-15 22:53:51 +01:00
Sébastien Helleu
07fbd30948
tests: add missing include of string.h in plugin API info tests
2023-12-15 13:51:32 +01:00
Sébastien Helleu
1cc59edfcc
core: fix infinite loop in display when the chat area is too small ( closes #2053 )
2023-12-14 23:12:39 +01:00
Sébastien Helleu
fa0b320178
core: fix style
2023-12-14 23:11:35 +01:00
Nils Görs
ffa933bcf8
core: update German translations
2023-12-13 21:22:34 +01:00
Sébastien Helleu
b3422b96c0
irc: add option irc.look.display_host_wallops
2023-12-10 21:13:00 +01:00
Sébastien Helleu
3db8eb65ff
tests: add tests with options irc.look.display_host_{join|join_local|notice|quit} set to off
2023-12-10 21:03:33 +01:00
Ivan Pešić
73e3d0e693
doc: Update Serbian documentation
2023-12-05 22:32:18 +01:00
Ivan Pešić
4bc0fd588d
core: Update Serbian translation
2023-12-05 22:32:18 +01:00
Sébastien Helleu
a39a1832a1
Revert "core: fix detection of gettext headers on Darwin ( closes #2031 )"
...
This reverts commit 80fa597a71 .
2023-12-04 21:21:49 +01:00
Sébastien Helleu
d6ccfb5862
core: fix Polish translations
2023-12-04 21:07:46 +01:00
Sébastien Helleu
80fa597a71
core: fix detection of gettext headers on Darwin ( closes #2031 )
2023-12-04 21:02:26 +01:00
Krzysztof Korościk
dab17e8d59
po: updated polish translation
2023-12-04 19:46:09 +01:00
Nils Görs
d70ef53973
core: update German translations
2023-12-04 09:00:37 +01:00
Krzysztof Korościk
33e320ac95
po: updated part of polish translation
2023-12-04 00:04:31 +01:00
Sébastien Helleu
8c3b7b6c6e
core: add versions 4.0.7 and 4.1.2 in ChangeLog and release notes
2023-12-03 19:25:20 +01:00
Sébastien Helleu
6223639b71
core: improve forms for new issues, feature requests and questions on GitHub
2023-12-03 09:49:13 +01:00
NetSysFire
a788ca13d8
core: add forms for new issues, feature requests and questions on GitHub
2023-12-03 09:49:13 +01:00
Sébastien Helleu
bc08d9a2b3
tests: rename tests
2023-12-02 13:32:15 +01:00
Sébastien Helleu
52f32e5612
tests: add tests on plugin config functions
2023-12-02 13:24:42 +01:00
Sébastien Helleu
f4926cbd20
tests: rename file test-plugins-api-info.cpp to test-plugin-api-info.cpp
2023-12-02 13:17:47 +01:00
Sébastien Helleu
ba33e1db7d
tests: fix tests on function plugin_api_infolist_plugin_cb
2023-12-02 11:47:45 +01:00
Sébastien Helleu
d6796edac0
tests: add tests on plugin API info functions
2023-12-02 11:40:28 +01:00
Sébastien Helleu
36b9a58c72
tests: remove unneeded constant TOTP_SECRET
2023-12-02 09:44:07 +01:00
Sébastien Helleu
038eae07bd
api: add info "mouse"
2023-12-02 09:43:36 +01:00
Sébastien Helleu
445d1d0ec5
api: return NULL instead of empty infolist "key" when context is not found
2023-12-02 09:40:01 +01:00
Sébastien Helleu
51fec9257e
core: check that directory is not NULL in function plugin_api_info_absolute_path
2023-12-02 09:37:22 +01:00
Sébastien Helleu
de5b0aae47
core: rename variable "version" to "compilation_date"
2023-12-02 09:36:57 +01:00
Sébastien Helleu
9711d2dc76
tests: add placeholders for new functions in irc server tests
2023-12-01 07:10:36 +01:00
Nils Görs
7974f4f40a
core: update German translations
2023-11-30 21:09:58 +01:00
Sébastien Helleu
22fcb91e8b
irc: display messages 730/731 even if command /notify was not used ( closes #2049 )
2023-11-29 18:14:37 +01:00
Sébastien Helleu
0f1b18d415
core: move link to Mastodon before Diaspora*
2023-11-29 14:35:12 +01:00
Sébastien Helleu
f13c5b0b51
core: fix typo in release notes
2023-11-29 14:34:55 +01:00
Sébastien Helleu
996d1def22
core: update translations (issue #1039 )
2023-11-29 10:00:57 +01:00
Sébastien Helleu
de82d50768
irc: remove unneeded error message when an unknown server option is read in config file (issue #1039 )
...
This is not needed because an error is already displayed by WeeChat core and
the IRC error doesn't add anything relevant to the user.
2023-11-29 10:00:54 +01:00
Sébastien Helleu
f7b7e3975a
irc: add server option "anti_flood", remove server options "anti_flood_prio_{high|low}" (issue #1039 )
...
The new option is set in milliseconds.
2023-11-29 09:49:27 +01:00
Ivan Pešić
e51152e6a4
core: Update Serbian translation
2023-11-29 08:39:06 +01:00
Nils Görs
9aa9bf4c9f
core: update German translations
2023-11-28 12:03:18 +01:00
Sébastien Helleu
e74b5db253
irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued
2023-11-26 18:58:48 +01:00
Sébastien Helleu
6d427421de
irc: add option irc.look.list_buffer
2023-11-24 19:42:28 +01:00
Sébastien Helleu
d4220e8144
tests: add eval tests on "raw" and "raw_hl" with escaped prefix
2023-11-24 08:04:35 +01:00
Sébastien Helleu
e01fa0aac9
tests: fix tests on function string_replace_with_callback
2023-11-23 22:01:48 +01:00
Sébastien Helleu
86cf456bb7
core: fix evaluation of ${raw_hl:...} with escaped prefix inside
...
Now `${raw_hl:\${` returns `\${` instead of `${`.
2023-11-23 20:59:31 +01:00
Sébastien Helleu
479ab5bc58
core: evaluate expressions even when the suffix is missing (issue #2042 , issue #1714 )
2023-11-23 08:49:54 +01:00
Sébastien Helleu
87f74e9f95
core: add syntax highlighting in evaluation of expressions, add option weechat.color.eval_syntax_colors (issue #2042 )
...
Syntax highlighting (raw string without evaluation): `${raw_hl:xxx}`
Syntax highlighting: `${hl:xxx}`
2023-11-23 08:49:54 +01:00
Sébastien Helleu
2b0c2747ad
api: remove script hooks before buffers/bar items/configs
...
This prevents a crash in some scripts that could use options after they are
freed, with the call to hook config callback that has been enabled by commit
2260214797 .
2023-11-21 20:57:49 +01:00
Sébastien Helleu
6b0b3996cd
core: add "core" in ChangeLog
2023-11-21 07:48:35 +01:00
Krzysztof Korościk
794dc115e5
po: updated polish translation
2023-11-20 23:52:08 +01:00
Krzysztof Korościk
117efa2716
po: updated part of polish translation
2023-11-19 23:48:00 +01:00
Krzysztof Korościk
b9c8f215f3
doc: updated polish translation
2023-11-19 18:09:43 +01:00
Ivan Pešić
ca388bdd53
doc: Update Serbian documentation
2023-11-16 13:30:27 +01:00
Ivan Pešić
3cec88506a
core: Update Serbian translation
2023-11-16 13:30:27 +01:00
Sébastien Helleu
7b86f31764
buflist: jump to previous/next buffer displayed in buflist item with ctrl+wheel up/down on a buflist item ( closes #1473 )
2023-11-11 21:04:21 +01:00
Nils Görs
5d38149578
core: update German translations
2023-11-11 14:19:19 +01:00
Sébastien Helleu
75582b9262
core: remove empty lines in release notes
2023-11-11 09:46:08 +01:00
Sébastien Helleu
d1aeca9ca9
core: fix section titles in release notes
2023-11-11 09:44:01 +01:00
Sébastien Helleu
acd67bf34d
core: update translations (issue #2040 )
2023-11-11 08:59:43 +01:00
Sébastien Helleu
e4720e5d5b
core: add search in commands history in release notes (issue #2040 )
2023-11-11 08:54:30 +01:00
Sébastien Helleu
f00904afaa
core: split ChangeLog entry on multiple lines (issue #2040 )
2023-11-11 08:54:28 +01:00
Sébastien Helleu
6f90c7ef08
core: move key ctrl+s, ctrl+u to alt+shift+U (issue #2040 )
2023-11-11 08:54:26 +01:00
Sébastien Helleu
97a90ac65a
core: add key ctrl+o to send command found and insert next one in input (issue #2040 )
2023-11-11 08:54:24 +01:00
Sébastien Helleu
b83b428c5c
core: add incremental search in commands history (issue #2040 )
...
Changes:
- move key ctrl+r to ctrl+s
- add key ctrl+r to search in commands history
- add option `search_history` in command `/input`
- add key context "histsearch"
- add option weechat.look.buffer_search_history
- add buffer variables "text_search_direction", "text_search_history" and "text_search_ptr_history"
2023-11-11 08:54:06 +01:00
Nils Görs
b2ce312e82
core: update German translations
2023-11-09 10:28:39 +01:00
Sébastien Helleu
ecc900ba3a
tests: add tests on IRC message 337
2023-11-07 21:58:04 +01:00
Sébastien Helleu
515d4241ad
irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time")
2023-11-07 21:50:12 +01:00
Nils Görs
977fd3b6f7
core: update German translations
2023-11-06 13:46:44 +01:00
Sébastien Helleu
252240a1b1
core: fix value of buffer variable "num_history" when the value defined in option weechat.history.max_commands is reached
2023-11-04 17:01:45 +01:00
Sébastien Helleu
11d95fce11
relay: close properly connection with the IRC client in case of server disconnection ( closes #2038 )
2023-11-04 08:58:19 +01:00
Sébastien Helleu
7d403d41e6
core: remove incorrect warning when binding keys F10 to F20 ( closes #2039 )
2023-11-04 08:36:04 +01:00
Sébastien Helleu
d96a3e6b55
doc/faq: add question about key F11
2023-11-04 08:05:24 +01:00
Sébastien Helleu
c90c71ea30
core: fix double call to hook config when an option is unset
2023-11-04 07:37:12 +01:00
Sébastien Helleu
028902b0e3
core: update ChangeLog
2023-11-04 00:02:12 +01:00
Sébastien Helleu
2260214797
core: call hook config when options are freed by unset or when file/section is freed
...
This fixes a refresh issue on the fset buffer when a plugin is unloaded: now
the options displayed that are freed are properly removed from the fset buffer.
2023-11-03 22:31:05 +01:00
Sébastien Helleu
ab2684fd52
relay: change default value of option relay.network.tls_priorities to NORMAL
...
It is no more needed to remove `VERS-SSL3.0` because it is no longer in the
default priorities since GnuTLS 3.4.0 (released on 2015-04-08).
2023-11-03 22:01:50 +01:00
Sébastien Helleu
d4cba7b7a3
irc: change default value of server option "tls_priorities" to NORMAL
...
It is no more needed to remove `VERS-SSL3.0` because it is no longer in the
default priorities since GnuTLS 3.4.0 (released on 2015-04-08).
2023-11-03 21:58:13 +01:00
Sébastien Helleu
d90eebf6ca
irc: update help on color remap options, update translations (issue #2025 )
2023-11-01 14:29:25 +01:00
Sébastien Helleu
f16857fc3d
irc: add option irc.color.term_remap ( closes #2025 )
2023-11-01 13:56:40 +01:00
Sébastien Helleu
082cbe519b
irc: add support of RGB colors in messages (issue #2025 )
...
This is made using standard color code '\x04' followed by text color (RGB as
hexadecimal) and optional background (RGB as hexadecimal).
2023-11-01 13:21:06 +01:00
Sébastien Helleu
6d69cde186
core, plugins: set error to NULL before calling strtol()
...
This is not strictly necessary, just in case the function strtol() doesn't
update the pointer.
2023-11-01 09:53:38 +01:00
Sébastien Helleu
f53983bc79
core: display an error with command /history N when N is not a valid integer
2023-11-01 09:44:44 +01:00
Sébastien Helleu
1dd535da5d
trigger: rename local variable "trigger_filter" to "filter" on monitor buffer ( closes #2037 )
2023-10-30 23:41:28 +01:00
Sébastien Helleu
02f26517f3
core: fix memory leak when config version is invalid or not supported
2023-10-30 23:10:54 +01:00
Sébastien Helleu
3c62ae482b
core: fix memory leak when infolist variable can not be created
2023-10-30 23:10:54 +01:00
Sébastien Helleu
fd78c2f9ac
core: check that buffer is not NULL in function gui_chat_printf_date_tags_internal
2023-10-30 23:10:54 +01:00
Sébastien Helleu
23289dcb2c
core: fix use NULL pointer when a config file has no options
2023-10-30 23:10:54 +01:00
Sébastien Helleu
81b31d9e6c
logger: remove dead assignment
2023-10-30 23:10:54 +01:00
Sébastien Helleu
e8a4c1d813
xfer: fix use of uninitialized variable when adding a new xfer
2023-10-30 23:10:54 +01:00
Sébastien Helleu
4d884729f9
xfer: fix use of NULL pointer in strrchr()
2023-10-30 23:10:54 +01:00
Sébastien Helleu
f8c459453d
core: fix crash when "config_version" is present in a configuration file without a value
2023-10-30 23:10:54 +01:00
Sébastien Helleu
bd187cd668
core: display an error on startup if environment variable "HOME" is not set
2023-10-30 23:10:54 +01:00
Sébastien Helleu
24c46cf3e5
tests: check that environment variable "HOME" is set before using it
2023-10-30 08:45:44 +01:00
Sébastien Helleu
1a5ff442cb
ruby: fix use of NULL variable when displaying exception
2023-10-30 08:38:44 +01:00
Sébastien Helleu
21759171d2
irc: add tags "nick_xxx" and "host_xxx" in all messages, including self and server messages
2023-10-30 08:23:20 +01:00
Sébastien Helleu
7406c8b94c
ci: uninstall php8.1-imagick before build (issue #2009 )
...
When php imagick is installed and when WeeChat is compiled with gcc, there's a
crash when the php plugin is loaded. Newer versions of gcc should fix the
issue, but as in CI we can't easily use them, uninstalling imagick avoids the
crash.
2023-10-28 09:08:33 +02:00
Sébastien Helleu
5c41d6c4a4
core: add version 4.1.1
2023-10-26 21:26:38 +02:00
Sébastien Helleu
6631d44a8d
core: add version 4.0.6
2023-10-26 21:26:31 +02:00
Sébastien Helleu
df1f48cc9b
core: display only version with command /version, add options -o and -ol in command /upgrade
2023-10-26 20:42:23 +02:00
Nils Görs
57475499bf
core: update German translations
2023-10-24 16:56:23 +02:00
Nils Görs
8f4a1a2dea
core: update German translations
2023-10-24 09:22:48 +02:00
Sébastien Helleu
c156fee0e1
core: fix crash when a custom bar item name is already used by a default bar item ( closes #2034 )
2023-10-23 13:11:02 +02:00
Nils Görs
0fe7eec90b
core: update German translations
2023-10-23 11:28:58 +02:00
Sébastien Helleu
3cc400a9d6
core: add number of processes in command /sys waitpid
2023-10-22 21:02:41 +02:00
Sébastien Helleu
d6343020aa
core: fix random timeouts when a lot of concurrent processes are launched with hook_process ( closes #2033 )
2023-10-20 21:00:22 +02:00
Sébastien Helleu
8a389395b9
core: update translations (issue #2005 )
2023-10-20 13:16:40 +02:00
Sébastien Helleu
02679e8001
logger: add description for examples in help on command /logger (issue #2005 )
2023-10-20 13:16:07 +02:00
Sébastien Helleu
fce5386d5c
irc: add description for examples in help on some commands (issue #2005 )
...
Help is updated on these commands:
- `/allchan`
- `/allpv`
- `/allserv`
2023-10-20 13:15:52 +02:00
Sébastien Helleu
96b7c60c5a
core: add description for examples in help on some commands (issue #2005 )
...
Help is updated on these commands:
- `/allbuf`
- `/bar`
- `/print`
- `/repeat`
- `/secure`
- `/wait`
2023-10-20 13:15:49 +02:00
Sébastien Helleu
6452be4a28
core: update translations (issue #194 , issue #2032 )
2023-10-19 23:59:15 +02:00
Sébastien Helleu
a88b8f7ed2
irc: revert compute of nick colors to case sensitive way, deprecate again IRC nick color infos (issue #194 , issue #2032 )
2023-10-19 23:38:28 +02:00
Sébastien Helleu
1896c50c11
core: update translations (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
fa1e82d500
xfer: format and translate commands line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
7702ed56ea
trigger: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
f65556f3b2
spell: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
ce5de07dbd
relay: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
efa1f44317
script: format and translate commands line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
d60859138f
logger: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
55ef9536c5
irc: format and translate commands line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
58bab65fd1
fset: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
79581019aa
fifo: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
aa32fa6d3e
exec: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
2aaa14b616
charset: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
cfa5f3324a
buflist: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
05b160b5bc
alias: format and translate command line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
2a4faf566b
core: format and translate commands line by line (issue #2005 )
2023-10-17 18:14:54 +02:00
Sébastien Helleu
bbf42a5d09
api: add support of format/translation of command arguments description line by line (issue #2005 )
2023-10-17 18:14:53 +02:00
Sébastien Helleu
e34071131e
api: add function string_concat (issue #2005 )
2023-10-17 18:14:53 +02:00
Sébastien Helleu
9bc9df47d7
irc: add option irc.look.ignore_tag_messages ( closes #989 )
2023-10-15 18:45:11 +02:00
Sébastien Helleu
3898449dc2
irc: add structure with context sent as unique parameter to IRC protocol callbacks (issue #989 )
2023-10-15 18:40:01 +02:00
Sébastien Helleu
aed5c543ec
core: update ChangeLog ( closes #1956 )
2023-10-15 18:00:59 +02:00
Sébastien Helleu
ed98425b1b
core: update translations (issue #1956 )
2023-10-15 16:50:33 +02:00
Sébastien Helleu
0c45083324
alias: allow wildcard in command /alias del (issue #1956 )
2023-10-15 16:50:26 +02:00
Sébastien Helleu
13e73d52d3
core: allow wildcard in command /proxy del (issue #1956 )
2023-10-15 16:19:31 +02:00
Sébastien Helleu
59d11533dd
core: allow wildcard in command /item del (issue #1956 )
2023-10-15 16:19:06 +02:00
Sébastien Helleu
99a56b99f2
core: allow wildcard in command /bar del (issue #1956 )
2023-10-15 16:18:51 +02:00
Sébastien Helleu
aebf6d7ab3
core: allow wildcard in command /filter (issue #1956 )
...
A mask with wildcards is now allowed in the following commands:
- `/filter enable`
- `/filter disable`
- `/filter toggle`
- `/filter del`
2023-10-15 16:18:02 +02:00
Sébastien Helleu
35660f8b1d
trigger: allow wildcard in command /trigger (issue #1956 )
...
A mask with wildcards is now allowed in the following commands:
- `/trigger enable`
- `/trigger disable`
- `/trigger toggle`
- `/trigger restart`
- `/trigger del`
- `/trigger restore`
2023-10-15 16:15:50 +02:00
Sébastien Helleu
1a579e03e8
core: update French translations
2023-10-15 15:48:55 +02:00
Sébastien Helleu
1d6e1fd752
core: make libintl.h required if CMake option ENABLE_NLS is enabled (issue #2031 )
2023-10-15 14:58:26 +02:00
Sébastien Helleu
18b3c7a30b
Version 4.2.0-dev
2023-10-15 09:06:12 +02:00
Sébastien Helleu
775b9c9cdf
Version 4.1.0
2023-10-15 09:02:57 +02:00
Sébastien Helleu
6bc7d6fad3
debian: update changelog
2023-10-15 08:46:45 +02:00
Sébastien Helleu
9aefe4ae09
core: call curl init and cleanup functions
...
This is to prevent issues when these functions are not thread-safe.
2023-10-13 23:03:00 +02:00
Trygve Aaberge
13a057f0b2
core: only print hook_url errors when debug is enabled
...
Errors from hook_url should be handled by the caller, so don't print
them to the core buffer by default. Only print them when
weechat_debug_core is enabled. This was already the behavior for the
timeout error.
2023-10-13 21:52:15 +02:00
Trygve Aaberge
3735397a0f
core: add error codes to output in hook_url
...
When hook_url fails, add an error_code field in the output in addition
to the error field. This is so the caller can get which error happened
programatically, without having to parse the (possibly translated) error
string.
It uses the same error codes as the return_code in hook_process, and in
addition adds 5 for an error from pthread_create and 6 for a timeout
error. If the error is from pthread_create, an additional field
`error_code_pthread` with the error code from pthread_create is added.
If the error is from curl, an additional field `error_code_curl` with
the error code from curl is added.
2023-10-13 09:26:00 +02:00
Trygve Aaberge
57b2efd82b
core: run hook_url callback when pthread_create failed
2023-10-13 09:25:39 +02:00
Sébastien Helleu
6468f7761f
core: set "error" field of "output" hashtable in hook_url in case of transfer timeout
2023-10-13 08:14:31 +02:00
Nils Görs
a83121b847
core: update German translations
2023-10-11 07:52:02 +02:00
Sébastien Helleu
02a05f63d5
core: fix zombie processes remaining after the end of forked processes ( closes #1994 )
...
The clean of processes with waitpid() is now delayed after the kill(), so that
there are no more zombies.
In addition, this can be done manually if needed with `/sys waitpid`.
2023-10-10 19:23:43 +02:00
Sébastien Helleu
408901d772
irc: move value -all at the end of completions for command /ignore del
2023-10-09 20:06:52 +02:00
Sébastien Helleu
bea9d5a2bf
irc: fix memory leak when joining channels with keys
2023-10-07 20:33:42 +02:00
Sébastien Helleu
feb5ee8886
core: fix build error if CMake option ENABLE_NLS is turned to off or if required dependencies are not found ( closes #2026 )
2023-10-05 19:05:02 +02:00
Sébastien Helleu
b46ed5a2a2
core: use larger buffer for errors when creating a filter
2023-10-05 19:02:38 +02:00
Nils Görs
1d104bb940
core: update German translations
2023-10-05 08:44:28 +02:00
Sébastien Helleu
4600aeea53
core: update ChangeLog (issue #2024 )
2023-10-01 16:43:48 +02:00
Sébastien Helleu
6bd0c63192
core: make zstd dependency optional ( closes #2024 )
2023-10-01 16:36:32 +02:00
Sébastien Helleu
879a548bea
buflist: rename completions with items
...
Completions renamed:
- "buflist_all_items" -> "buflist_items"
- "buflist_used_items" -> "buflist_items_used"
2023-10-01 12:14:03 +02:00
Sébastien Helleu
e928bce76c
buflist: add support of item names in command /buflist refresh
2023-10-01 09:58:19 +02:00
LuK1337
8bd4994ccd
core, relay: make inet_pton() return value checks more strict
...
inet_pton() can return values < 0.
2023-09-26 17:48:20 +02:00
Sébastien Helleu
360e971b01
core: add contributor
2023-09-26 17:14:10 +02:00
LuK1337
0bb5998988
core: replace inet_addr() with inet_pton()
...
man pages as well as rpminspect suggest that we shouldn't be using
inet_addr().
2023-09-26 17:12:03 +02:00
Sébastien Helleu
b58f704542
core: update ChangeLog
2023-09-25 13:50:32 +02:00
LuK1337
bcd23ff585
core: fix TOTP moving factor on big-endian systems
2023-09-25 13:48:30 +02:00
LuK1337
169eecb5cf
tests: use correct data type method in hdata tests
2023-09-25 13:48:30 +02:00
LuK1337
b433afbd26
tests: cast infolist time variable value to the correct data type
2023-09-25 13:48:30 +02:00
Sébastien Helleu
082ccb05bb
core: add version 4.0.5
2023-09-24 10:24:26 +02:00
Sébastien Helleu
f72fb3be4b
irc: display "owner" for +q and "admin" for +a in output of /names ( closes #2020 , issue #97 )
2023-09-22 23:21:22 +02:00
Sébastien Helleu
7f0efa3a8f
core: update translations
2023-09-22 23:12:32 +02:00
Sébastien Helleu
c96971eebb
script: only check if return value of plugin_script_search_path is NULL (issue #2019 )
2023-09-22 22:58:51 +02:00
Sébastien Helleu
d6e4e87faf
script: fix removal of script in system directory while trying to install a script ( closes #2019 )
2023-09-22 22:51:44 +02:00
Sébastien Helleu
12106ae7ba
script: fix autoload of multiple scripts at once with /script autoload ( closes #2018 )
2023-09-20 20:05:49 +02:00
Sébastien Helleu
91bb1ebf5d
tests: fix condition on libgcrypt version for algorithms sha512-224 and sha512-256 (issue #2008 )
2023-09-20 06:56:56 +02:00
Sébastien Helleu
439410a388
doc/api: use a table for file_in/file_out options in function hook_url
2023-09-16 13:00:03 +02:00
Sébastien Helleu
36ab6c3bc7
doc/api: add link to hook_url in hook_process_hashtable for Curl options
2023-09-16 13:00:03 +02:00
Sébastien Helleu
f0e4494205
core: properly terminate thread and release memory in url hook
2023-09-16 13:00:03 +02:00
Sébastien Helleu
83dcb84ea6
doc/api: add function hook_url
2023-09-16 13:00:03 +02:00
Sébastien Helleu
fb00bc1f4b
scripts: add function hook_url in scripting API
2023-09-16 13:00:03 +02:00
Sébastien Helleu
24d2ba3338
script: replace hook_process_hashtable by hook_url to download scripts and list of scripts ( closes #1723 )
2023-09-16 12:58:57 +02:00
Sébastien Helleu
63922ca038
api: add function hook_url
2023-09-16 10:19:51 +02:00
Sébastien Helleu
a5f4c3770b
doc/faq: add question about move of WeeChat config to another device
2023-09-16 09:46:50 +02:00
Sébastien Helleu
23d3ce7ad8
doc/faq: add question about keys like Enter and version 4.0.0
2023-09-15 18:57:00 +02:00
Nils Görs
f49810ec0e
core: update German translations
2023-09-15 12:48:22 +02:00
Sébastien Helleu
85b5bacfe3
script: rename parameters up/down/go to -up/-down/-go in command /script
2023-09-15 08:43:37 +02:00
Sébastien Helleu
e62ff286ff
xfer: fix crash on /dcc chat
2023-09-14 20:48:58 +02:00
Sébastien Helleu
cb680ef9df
irc: add option irc.look.open_pv_buffer_echo_msg (issue #2016 )
2023-09-14 20:19:05 +02:00
Sébastien Helleu
63fc9aace8
irc: update title in query buffer when remote nick is myself (issue #2016 )
2023-09-14 16:15:09 +02:00
Sébastien Helleu
a2c3322df7
irc: fix title of query buffer for own messages received (issue #2016 )
2023-09-14 15:22:11 +02:00
Sébastien Helleu
049e9d23c5
irc: open a query buffer on PRIVMSG received from self nick when capability echo-message is NOT enabled (issue #2016 )
2023-09-14 14:51:50 +02:00
Sébastien Helleu
4c3ab508c7
irc: don't open a new private buffer on /msg command when capability echo-message is enabled ( closes #2016 )
2023-09-14 11:10:17 +02:00
Sébastien Helleu
747d6122bc
core: move ChangeLog entry to the appropriate version
2023-09-14 11:07:42 +02:00
Nils Görs
aad846583d
core: update German translations
2023-09-14 08:45:01 +02:00
Sébastien Helleu
4e173c1972
irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016 )
2023-09-14 08:04:44 +02:00
Sébastien Helleu
ef99d544fa
core: add algorithms sha512-224, sha512-256, sha3-*, blake2b-* and blake2s-*` in option sec.crypt.hash_algo ( closes #2008 )
2023-09-13 15:10:19 +02:00
Sébastien Helleu
684bfd64c6
api: add algorithms sha512-224, sha512-256, blake2b-* and blake2s-*` in hash functions (issue #2008 )
2023-09-13 15:09:34 +02:00
Nils Görs
29c4aa4620
core: update German translations
2023-09-13 10:19:54 +02:00
Sébastien Helleu
d100d62a72
core: translate error messages (issue #2013 )
2023-09-12 15:09:00 +02:00
Sébastien Helleu
3021b2f9c5
core: automatically backup config file read if it has an unsupported version ( closes #2013 )
2023-09-12 14:59:25 +02:00
Sébastien Helleu
6fcdb50dab
xfer: fix memory leak on plugin unload
2023-09-12 13:38:14 +02:00
Sébastien Helleu
54a5815105
doc/api: fix return values for callback_read in config_new_section
2023-09-12 13:35:02 +02:00
Sébastien Helleu
c4c58e0914
irc: fix unexpected message sent to server when part of the second line of an IRC command ( closes #1992 )
2023-09-12 08:14:23 +02:00
Sébastien Helleu
8eb2604704
core: add path in message displayed when a config file is updated to a newer version
2023-09-11 22:49:21 +02:00
Sébastien Helleu
ddd859886e
irc: fix autojoin of channels when private buffers are opened ( closes #2012 )
2023-09-11 21:41:47 +02:00
Sébastien Helleu
ae50f6688e
irc: reset filter and sort when /list buffer is closed (issue #1972 )
2023-09-11 16:40:45 +02:00
Nils Görs
6170ebd396
core: update German translations
2023-09-11 11:21:54 +02:00
Sébastien Helleu
82372115ae
core: display a message when a configuration file is updated to a newer version
2023-09-11 09:53:17 +02:00
Nils Görs
71dfbdc419
core: update German translations
2023-09-11 08:44:14 +02:00
Sébastien Helleu
79d0a134e3
buflist: add missing items buflist4 and buflist5 in help on command/options and user's guide
2023-09-11 07:55:54 +02:00
Nils Görs
3882b2e881
core: update German translations
2023-09-09 21:03:38 +02:00
Sébastien Helleu
6b356d4208
doc/user: add missing actions on script buffer
2023-09-09 11:26:04 +02:00
Sébastien Helleu
a2e9c74b50
doc/user: add missing key alt+L (input L) on script buffer
2023-09-09 11:10:50 +02:00
Sébastien Helleu
d9555cc567
scripts: add functions config_enum and config_enum_default in scripting API (issue #1973 )
2023-09-09 08:54:33 +02:00
Sébastien Helleu
9fada89f96
doc/user: add missing actions p and v on fset buffer
2023-09-08 20:22:59 +02:00
Sébastien Helleu
46b76af645
xfer: display an error message when opening file for read or write fails (issue #2010 )
2023-09-08 13:06:28 +02:00
Sébastien Helleu
b30b492e66
core: update translations
2023-09-08 13:02:36 +02:00
Sébastien Helleu
2c251cd285
script: fix up/down keys on /script buffer
...
Regression was introduced in commit 817d1eaf8e .
2023-09-08 10:47:46 +02:00
Nils Görs
7fd20269e7
core: update German translations
2023-09-08 07:56:48 +02:00
Sébastien Helleu
374262a8d7
core: add completion "eval_variables", used in completion of /eval
2023-09-07 11:38:26 +02:00
Sébastien Helleu
89739421cf
core: fix comment on function eval_replace_vars_cb
2023-09-07 11:30:54 +02:00
Sébastien Helleu
1be5209e9f
core: update translations (issue #2004 )
2023-09-06 19:16:06 +02:00
Sébastien Helleu
65e092ab25
core: add contributor (issue #2004 )
2023-09-06 19:16:06 +02:00
Sébastien Helleu
5f5f05805f
core: update ChangeLog (issue #2004 )
2023-09-06 19:16:06 +02:00
Sébastien Helleu
6eb3f5672f
xfer: fix code style (issue #2004 )
2023-09-06 19:10:47 +02:00
Sébastien Helleu
1f1416dd50
irc: fix code style (issue #2004 )
2023-09-06 19:10:41 +02:00
Mario Campos
1ee3bad88b
xfer: update command/config docs with passive DCC support.
2023-09-06 14:11:35 +02:00
Mario Campos
7f0f947667
xfer: add passive DCC support.
...
This commit also includes support for passive DCC RESUME.
There was also a potential segfault with calling `atoi(pos_token)` when `pos_token` is NULL, so `token` is set to be stored as a string. Although it is an integer, we don't need to store it as such. That's really more of an implementation detail.
2023-09-06 14:11:35 +02:00
Mario Campos
23d70b5101
xfer: add and identify active/passive xfer types.
...
Before making any significant changes, let's identify the existing xfer types by either active or passive.
2023-09-06 14:11:35 +02:00
Mario Campos
2a40743ed0
xfer: reverse DCC parsing from RtL to LtR.
...
This makes it easier to handle the optional "token" argument at the (right) end, which will be necessary to support passive DCC.
Incidentally, this is RtL parsing order is the reason why you'd get a cryptic "0" address error when attempting to do passive DCC: the "token" argument gets misinterpreted as the "size" argument. Every argument "shifts" over by one, leaving an address (port) of "0".
2023-09-06 14:11:35 +02:00
Sébastien Helleu
ac8418de8e
irc: remove default CTCP replies FINGER and USERINFO from user's guide (issue #1974 )
2023-09-06 14:10:56 +02:00
Sébastien Helleu
e1ecf992f3
irc: fix comments on CTCP evaluated variables (issue #1974 )
2023-09-06 14:05:10 +02:00
Ivan Pešić
cf6ec7657e
doc: Update Serbian documentation
2023-09-06 10:25:41 +02:00
Ivan Pešić
75c5ccecfa
core: Update Serbian translation
2023-09-06 10:25:41 +02:00
Sébastien Helleu
722cb27d04
core: add note for translators on command arguments (issue #2005 )
...
Only text between angle brackets (eg: "<name>") must be translated.
2023-09-05 13:28:26 +02:00
Sébastien Helleu
13ce1147fc
doc: fix alignment of command arguments in auto-generated file when command name contains wide chars
2023-09-01 08:58:36 +02:00
Nils Görs
b7cd446822
core: update German translations
2023-09-01 07:29:20 +02:00
Sébastien Helleu
5691518e91
doc/user: add section "buffer" in chapter on WeeChat options (issue #352 )
2023-08-30 17:33:50 +02:00
Sébastien Helleu
2b3fb62065
core: do not evaluate properties "key_bind_xxx" and "key_unbind_xxx" in options weechat.buffer.* (issue #352 )
2023-08-30 17:25:21 +02:00
Sébastien Helleu
c2b6523d9f
core: fix style for keys in ChangeLog
2023-08-29 12:32:23 +02:00
Sébastien Helleu
620fce4bba
core: add new key ctrl+z in ChangeLog
2023-08-29 12:28:24 +02:00
Sébastien Helleu
8b3311860b
api: add support of path to variable and hashtable comparison in function hdata_compare ( closes #1066 )
2023-08-29 10:22:17 +02:00
Sébastien Helleu
58d61cb153
core: remove unused variable old_value
2023-08-29 09:53:08 +02:00
Sébastien Helleu
32f52ae236
core: check that property is not NULL before calling free
2023-08-29 09:52:17 +02:00
Nils Görs
c5ceacd68f
core: update German translations
2023-08-28 20:34:03 +02:00
Sébastien Helleu
aa4bc616b9
core: add missing include of unistd.h
2023-08-28 17:57:46 +02:00
Sébastien Helleu
b203c4109b
core: move sys filename and functions
2023-08-28 17:55:54 +02:00
Sébastien Helleu
a16b3d25ce
core: update translations
2023-08-28 17:47:21 +02:00
Sébastien Helleu
cc2b44a8ec
core: add key ctrl+z to suspend WeeChat process ( closes #985 )
2023-08-28 17:39:33 +02:00
Sébastien Helleu
5ecb1adc34
core: add command /sys to show resource limits and usage
2023-08-28 12:30:32 +02:00
Nils Görs
d328d7f2b8
core: update German translations
2023-08-27 19:42:31 +02:00
Sébastien Helleu
711d3afa5c
script: fix crash when a /script command triggers another /script command (issue #923 )
2023-08-27 17:19:01 +02:00
Sébastien Helleu
99822fc5e7
core: ignore key bindings with empty command
...
This makes possible to disable a key hiding another (because shorter than the
other, and beginning with the same key).
For example if key "meta-a" is set to an empty command, it would not hide any
more the key "meta-a,1" which has a non-empty command.
2023-08-27 14:16:08 +02:00
Sébastien Helleu
181f4c041d
core: add support of quotes in commands /key bind and /key bindctxt
2023-08-27 14:15:30 +02:00
Sébastien Helleu
3ca4f2d3e5
irc: add count and mode filter in command /names ( closes #98 )
2023-08-27 12:26:10 +02:00
Sébastien Helleu
300adb42fa
irc: add note about regex and output on server buffer in /help list
2023-08-27 09:59:54 +02:00
Sébastien Helleu
e5e027b9fa
core: add countdown example in /help repeat (issue #2007 )
2023-08-27 08:25:41 +02:00
Sébastien Helleu
9a268ec7cc
core: evaluate command given to /repeat with contextual variables ( closes #2007 )
2023-08-27 08:03:40 +02:00
Nils Görs
b0ed5b99e9
core: update German translations
2023-08-27 00:12:07 +02:00
Sébastien Helleu
4a95d78c45
core: add variable ${property} in evaluation of options weechat.buffer.* (issue #352 )
2023-08-26 20:04:58 +02:00
Sébastien Helleu
dd0c20f6b6
irc: add count for all nick modes in output of /names ( closes #97 )
2023-08-26 18:57:21 +02:00
Sébastien Helleu
42c925b672
irc: use str_nicks only if not NULL in callback of message 353
2023-08-26 18:56:37 +02:00
Sébastien Helleu
ff4596e45c
core: add option callbacks in command /debug
2023-08-25 13:35:50 +02:00
Sébastien Helleu
cc2bb4b8cf
core: add function util_get_microseconds_string
2023-08-25 11:53:23 +02:00
Sébastien Helleu
015ff084e3
core: add microseconds precision in function util_parse_delay
2023-08-25 11:23:41 +02:00
Sébastien Helleu
11943ebaaf
tests: add tests on GUI buffer functions
...
Functions tested:
- gui_buffer_is_reserved_name
- gui_buffer_get_integer
- gui_buffer_get_string
- gui_buffer_get_pointer
2023-08-25 08:16:36 +02:00
Sébastien Helleu
2092715ac7
core: add buffer local keys in completion "buffer_properties_setauto"
2023-08-24 19:20:05 +02:00
Sébastien Helleu
272bcf3c97
core: update ChangeLog (issue #2006 )
2023-08-24 19:10:35 +02:00
Trygve Aaberge
d14e74ccf6
Add compatibility with Python < 3.10 in weechat.pyi
...
The | syntax for unions is only supported in Python 3.10 and later.
Since Python 3.8 and 3.9 are still supported upstream for a while and we
had a user reporting on IRC that they couldn't use the stub file since
they are using 3.8, change to the old syntax for unions to support this.
There aren't really any drawbacks of this. It's just a bit more verbose,
and a typing import is necessary, but neither of those really matters in
a generated stub file.
2023-08-24 19:08:00 +02:00
Sébastien Helleu
3a59f2f65e
irc: add local key bindings during the /list buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.irc.list_xxx.key_bind_*" and
"weechat.buffer.irc.list_xxx.key_unbind_*".
2023-08-24 19:03:44 +02:00
Sébastien Helleu
817d1eaf8e
script: add local key bindings during the buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.script.scripts.key_bind_*" and
"weechat.buffer.script.scripts.key_unbind_*".
2023-08-24 19:01:20 +02:00
Sébastien Helleu
6737859330
fset: add local key bindings during the buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.fset.fset.key_bind_*" and
"weechat.buffer.fset.fset.key_unbind_*".
2023-08-24 19:00:32 +02:00
Sébastien Helleu
fd07b2888f
fset: fix wrong value type in hashtable used for fset buffer properties
2023-08-24 18:44:50 +02:00
Sébastien Helleu
5d9af29024
api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" (issue #194 )
2023-08-24 18:19:32 +02:00
Nils Görs
965c6ac2ea
doc: update German documentation
2023-08-24 13:50:16 +02:00
Nils Görs
d2d3cd1b46
core: update German translations
2023-08-24 13:36:53 +02:00
Sébastien Helleu
0c6bcf3e78
core: update translations ( closes #352 )
2023-08-24 11:49:46 +02:00
Sébastien Helleu
303fe6744e
core: add option setauto in command /buffer (issue #352 )
2023-08-24 11:49:29 +02:00
Sébastien Helleu
3aef8b7292
core: add options weechat.buffer.* to save buffer properties set by user (issue #352 )
2023-08-24 10:38:47 +02:00
Sébastien Helleu
6aa66b5363
irc: compute color in case insensitive way ( closes #194 )
...
Reintroduce infos "irc_nick_color" and "irc_nick_color_name" (that were
marked deprecated since version 1.5).
A server name is added in the two infos and is optional, for backward
compatibility.
2023-08-24 09:24:51 +02:00
Sébastien Helleu
c2426e88c9
irc: add functions to convert strings to lower/upper case (following casemapping) (issue #194 )
2023-08-24 09:24:42 +02:00
Sébastien Helleu
09eae3e2af
irc: add tests on server functions
2023-08-23 15:33:34 +02:00
Sébastien Helleu
25b3f2eae7
irc: fix string comparison when CASEMAPPING is set to "ascii"
2023-08-23 15:33:34 +02:00
Sébastien Helleu
9462c87ce5
tests: add tests on string comparison functions with range of 29 chars
2023-08-23 12:14:07 +02:00
Sébastien Helleu
03927a3283
irc: check that server is not NULL in function irc_server_eval_fingerprint
2023-08-23 12:08:59 +02:00
Sébastien Helleu
7afc43901d
irc: move function irc_server_fingerprint_search_algo_with_size
2023-08-23 12:06:59 +02:00
Sébastien Helleu
49f52cc051
doc/faq: split CTCP options into two blocks
...
Second block is for CTCP replies made by older versions (< 4.1.0).
2023-08-22 23:55:01 +02:00
Sébastien Helleu
c0bd12bdf0
doc/faq: add disabling of buflist in question about CPU usage
2023-08-22 23:44:58 +02:00
Sébastien Helleu
0871024eda
core: add version 4.0.4
2023-08-22 12:08:42 +02:00
Nils Görs
4566ed2bf9
core: update German translations
2023-08-22 11:30:35 +02:00
Sébastien Helleu
9591af8be8
core: fix gcc warning on uninitialized variable pos_end
...
The variable `pos_end` is never used when not initialized anyway, thanks to the
`break` done before.
2023-08-22 10:29:11 +02:00
Sébastien Helleu
28ff9d602a
debian: bump Standards-Version to 4.6.2
2023-08-22 10:03:35 +02:00
Sébastien Helleu
a3382f5a09
build: update build dependency from libncursesw5-dev to libncurses-dev
2023-08-22 09:55:24 +02:00
Sébastien Helleu
212741af05
debian: remove NEWS file
2023-08-22 09:36:39 +02:00
Sébastien Helleu
00dbb24658
debian: update changelog
2023-08-22 09:35:40 +02:00
Sébastien Helleu
fdebcf690b
script: add parameters up/down/go in /help script and command completion
2023-08-22 09:34:41 +02:00
Sébastien Helleu
763e8bd3a0
script: allow jump to the last script with command /script go end
2023-08-22 09:24:06 +02:00
Sébastien Helleu
6950c953a1
script: adjust scroll after command /script go N
2023-08-22 09:21:00 +02:00
Ivan Pešić
fd6bdd3b59
doc: Update Serbian documentation
2023-08-22 07:51:09 +02:00
Ivan Pešić
f098a112a1
core: Update Serbian translation
2023-08-22 07:51:09 +02:00
Sébastien Helleu
ce4f4fb3fa
logger: remove trailing empty line in display of backlog ( closes #2002 )
2023-08-21 16:01:59 +02:00
Sébastien Helleu
faf9d1600f
tests: change date format in test of print_date_tags
...
With complete date and time format, the tests output was incorrectly parsed by
Emacs.
2023-08-21 15:31:14 +02:00
Sébastien Helleu
f4b9cad720
perl: fix display of non-ASCII chars after load of a script with Perl >= 5.38 ( closes #1996 )
2023-08-21 13:10:26 +02:00
Sébastien Helleu
6def0cf502
buflist: add list buffer in /help buflist and /help buflist.format.indent
2023-08-20 21:00:33 +02:00
Sébastien Helleu
6969b9b2b8
buflist: indent the /list buffer
2023-08-20 20:54:24 +02:00
Sébastien Helleu
5ffce90f23
irc: change local variable "type" from "irc_list" to "list" on /list buffer
2023-08-20 20:53:44 +02:00
Sébastien Helleu
64cb3e6a63
irc: fix wrong time displayed for CTCP messages received from self nick ( closes #2000 )
2023-08-18 23:57:35 +02:00
Sébastien Helleu
1fe1e1a1e8
scripts: fix tests of functions print_date_tag, print_y_date_tags and hook_timer on 32-bit systems (issue #1999 )
2023-08-18 16:42:52 +02:00
Sébastien Helleu
ed5467c4a9
scripts: fix function string_parse_size on 32-bit systems (python and ruby) (issue #1999 )
2023-08-18 16:40:53 +02:00
Sébastien Helleu
fadfffc0b6
xfer: fix conversion of string to IPv4 on 32-bit systems (issue #1999 )
2023-08-18 15:34:06 +02:00
Sébastien Helleu
08e110c835
core: use dynamic string in function gui_buffer_set_highlight_words_list
2023-08-18 13:38:05 +02:00
Sébastien Helleu
2c8657826f
core: simplify function gui_buffer_notify_get
2023-08-18 13:37:39 +02:00
Sébastien Helleu
b756598070
tests: add tests on GUI buffer functions
2023-08-18 13:35:36 +02:00
Sébastien Helleu
14334880d8
tests: fix NULL pointer comparison in test of function irc_message_parse_to_hashtable
2023-08-18 13:30:38 +02:00
Sébastien Helleu
2ad8a0d868
core: update ChangeLog (issue #1997 )
2023-08-18 07:54:47 +02:00
Sébastien Helleu
f89d4a60cd
tests: fix tests on function irc_join_compare_join_channel ( closes #1997 )
2023-08-18 07:34:52 +02:00
Sébastien Helleu
5bf78f40e5
tests: fix typo in test name
2023-08-18 07:30:20 +02:00
Sébastien Helleu
aac4b38432
core: add name of section in warning message for invalid value when reading config
2023-08-18 00:47:11 +02:00
Sébastien Helleu
41d23a448a
core: fix increment/decrement of options weechat.notify.*
2023-08-17 17:25:19 +02:00
Sébastien Helleu
274f5f9d53
core: fix integer overflow when setting integer option with ++N or --N
2023-08-17 17:03:34 +02:00
Nils Görs
d8bd0b7da8
core: update German translations
2023-08-17 12:10:01 +02:00
Nils Görs
773013cde7
core: update German translations
2023-08-17 11:27:51 +02:00
Sébastien Helleu
921b7fc2d3
tests: add tests on eval ternary operator with extra colon in value
2023-08-16 21:08:55 +02:00
Sébastien Helleu
8b9cdc8329
core: update translations (issue #1282 )
2023-08-16 16:12:49 +02:00
Sébastien Helleu
43d341feac
core: fix /help cursor (issue #1282 )
2023-08-16 16:12:35 +02:00
Sébastien Helleu
81e09bd6e1
doc/user: add chapter on cursor mode (issue #1282 )
2023-08-16 15:59:48 +02:00
Sébastien Helleu
48e6a1e387
core: add parameters and key bindings to move to edges of current area with commands /cursor go and /cursor move ( closes #1282 )
2023-08-16 15:25:52 +02:00
Sébastien Helleu
41dbcb1a81
core: set minimum CMake version to 3.5
...
This removes the following CMake warning:
CMake Deprecation Warning at CMakeLists.txt:22 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
2023-08-15 10:56:28 +02:00
Sébastien Helleu
e94a18268e
core: convert scripts local variables to lower case
2023-08-15 10:50:35 +02:00
Sébastien Helleu
409bd256a9
doc/user: remove old note in French doc
2023-08-15 08:51:50 +02:00
Sébastien Helleu
17927cc09f
doc/user: improve look of clicked buttons in mouse bindings
2023-08-15 08:47:08 +02:00
Sébastien Helleu
cfc734b7c5
tests: add empty function to test function irc_list_buffer_set_localvar_filter
2023-08-14 16:08:01 +02:00
Sébastien Helleu
09e0ffe935
doc/user: add mouse, keys and input for /list buffer
2023-08-14 11:53:04 +02:00
Sébastien Helleu
938e9c13cd
irc: add local variable "filter" on /list buffer
2023-08-14 11:01:50 +02:00
Sébastien Helleu
b75c956c02
fset: fix typos in French translation of /help fset
2023-08-14 10:32:06 +02:00
Sébastien Helleu
9727861d66
irc: fix /help list and French translation
2023-08-14 10:31:22 +02:00
Sébastien Helleu
2829a8ee2b
doc/user: fix command bound to left mouse button in fset buffer
2023-08-14 08:57:37 +02:00
Sébastien Helleu
46cea77585
relay: synchronize nick modes with IRC client upon connection ( closes #1984 )
2023-08-13 16:38:29 +02:00
Sébastien Helleu
4290876e64
script: allow commands /script autoload|noautoload|toggleautoload with scripts not present in the repository ( closes #1980 )
2023-08-13 10:22:06 +02:00
Sébastien Helleu
510756935c
core: remove reference to iset in German translation
2023-08-13 09:10:16 +02:00
Sébastien Helleu
beb93ada1e
script: replace "iset" example by "go" in comments
2023-08-13 09:10:04 +02:00
Sébastien Helleu
0bfdaa25bf
fset: remove redirection to /help fset.look.sort in /help fset
2023-08-12 16:25:25 +02:00
Sébastien Helleu
017f4cca18
core: fix French translation of /help list
2023-08-12 16:22:55 +02:00
Sébastien Helleu
2f1de098bd
irc: add buffer for /list reply ( closes #1972 )
...
New options:
- irc.color.list_buffer_line_selected
- irc.color.list_buffer_line_selected_bg
- irc.look.list_buffer_sort
- irc.look.list_buffer_scroll_horizontal
- irc.look.new_list_position
- irc.look.list_buffer_topic_strip_colors
2023-08-12 13:05:49 +02:00
Sébastien Helleu
d25a4213fe
irc: fix redirection of command /list when the reply doesn't start with message 321 (start of /list)
2023-08-10 08:13:54 +02:00
Sébastien Helleu
17674f7b11
irc: add missing tags on multiline messages ( closes #1987 )
2023-08-09 14:53:03 +02:00
Sébastien Helleu
356712f44d
core: add version 4.0.3
2023-08-08 22:10:29 +02:00
Sébastien Helleu
c6b18e9654
relay: fix display of IRC CTCP messages received from client (issue #1986 )
2023-08-08 09:38:54 +02:00
Sébastien Helleu
ff41a79aa9
core: update ChangeLog (issue #1988 )
2023-08-08 07:17:08 +02:00
Sébastien Helleu
1826decb0b
core: update translations (issue #1988 )
2023-08-08 07:14:56 +02:00
Nathaniel Evan
070f0da1c0
fset: fix the colon in help bar being included in description color
2023-08-08 06:59:14 +02:00
Nathaniel Evan
e0e839e7cc
fset: fix fset.color.help_description not applying
2023-08-08 06:59:14 +02:00
Sébastien Helleu
e5948b0d44
tests: add test on IRC notice sent to another nick with channel name at beginning (issue #1991 )
2023-08-01 22:48:43 +02:00
Sébastien Helleu
03daae3059
irc: fix display of outgoing notice with channel when capability "echo-message" is enabled ( closes #1991 )
2023-08-01 22:35:21 +02:00
Sébastien Helleu
b0549e4d09
irc: add channel in "autojoin" server option only when the channel is actually joined ( closes #1990 )
2023-08-01 21:45:28 +02:00
Sébastien Helleu
8e48503253
core: remove CMake option "ENABLE_DOC_WARN_LOCALE" from release notes (issue #1985 )
2023-08-01 08:31:44 +02:00
Sébastien Helleu
c198e875ce
core: remove CMake option "ENABLE_DOC_WARN_LOCALE" (issue #1985 )
2023-07-31 22:01:34 +02:00
Sébastien Helleu
73439d5a50
core: fix typo
2023-07-31 21:51:08 +02:00
Sébastien Helleu
36ab9d97e4
core: fix styles in ChangeLog
2023-07-31 21:27:46 +02:00
Sébastien Helleu
8bfd25e2e6
doc: stop build of docs if a locale is missing, add CMake option "ENABLE_DOC_WARN_LOCALE" ( closes #1985 )
2023-07-31 21:27:16 +02:00
Sébastien Helleu
1ffd0a58b9
core: add missing trailing newline char in doc generation error messages
2023-07-31 08:06:01 +02:00
Sébastien Helleu
4fc90b86bf
irc: fix switch to channel manually joined ( closes #1982 )
...
This happens when server option autojoin_dynamic is on and option
irc.look.buffer_switch_autojoin is off.
Regression was introduced in version 4.0.0 by commit
1c3b871204 .
2023-07-31 08:03:50 +02:00
Sébastien Helleu
63f9289769
core: fix input length and crash after delete of line ( closes #1989 )
2023-07-28 07:21:22 +02:00
Nils Görs
06fa5923e8
core: update German translations
2023-07-23 11:49:01 +02:00
Sébastien Helleu
13241cdca5
irc: fix memory leak in IRC message parser
...
Bug was introduced in WeeChat 3.4 by commit
c4b4d80936 .
2023-07-20 08:49:23 +02:00
Sébastien Helleu
93dfc8b105
core: fix typo in comment
2023-07-18 18:50:02 +02:00
Sébastien Helleu
874a24956c
irc: fix display of self CTCP message containing bold attribute ( closes #1981 )
2023-07-18 18:48:48 +02:00
Sébastien Helleu
a457e22d57
tests: add missing include of string.h
2023-07-15 16:24:16 +02:00
Sébastien Helleu
6b9dd2add3
fset: fix description of function fset_buffer_check_line_outside_window
2023-07-14 12:06:26 +02:00
Sébastien Helleu
eb71be4219
doc/api: fix return value in case of error in function hdata_get_var_offset
2023-07-14 09:53:19 +02:00
Sébastien Helleu
8cd13ef580
core: add version 4.0.2 in release notes
2023-07-12 22:09:24 +02:00
Sébastien Helleu
622410a64e
core: add version 4.0.2
2023-07-12 20:51:21 +02:00
Sébastien Helleu
7c805aa699
irc: remove default CTCP replies FINGER and USERINFO (issue #1974 )
2023-07-12 19:13:40 +02:00
Sébastien Helleu
9237852b26
irc: build dynamically the list of CTCPs supported in reply to "CTCP CLIENTINFO" (issue #1974 )
2023-07-12 18:58:51 +02:00
Sébastien Helleu
f46f759975
irc: evaluate options irc.ctcp.* (issue #1974 )
2023-07-12 18:58:30 +02:00
Sébastien Helleu
5d222c8d5c
irc: create default options irc.ctcp.* when file irc.conf is created (issue #1974 )
2023-07-11 19:40:04 +02:00
Sébastien Helleu
363d2d5e68
core: clarify messages for unknown options/sections read in config files ( closes #1967 )
2023-07-11 18:08:14 +02:00
Sébastien Helleu
ba6f21d910
irc: add missing "account-tag" in list of supported capabilities
2023-07-10 14:08:19 +02:00
Sébastien Helleu
2a02bb10e5
core: fix renaming of options with command /item rename ( closes #1978 )
...
The options `weechat.custom_bar_item.xxx.*` are now properly renamed to the new
item name.
This fixes a save issue (item saved with old name in config) and a crash if a
new item is created with the old name.
2023-07-10 07:31:28 +02:00
Sébastien Helleu
107f83c923
irc: remove Git revision and compilation date from CTCP VERSION/FINGER reply (issue #1974 )
2023-07-08 21:40:21 +02:00
Sébastien Helleu
38f3b40894
fset: add missing format in calls to snprintf
2023-07-08 17:14:03 +02:00
Sébastien Helleu
3070c12fa3
build: add C compiler options "-Wformat" and "-Werror=format-security"
2023-07-08 17:12:39 +02:00
Sébastien Helleu
1d5433485c
fset: add variable allowed_values in options, add two color options
...
New options:
- fset.color.allowed_values
- fset.color.allowed_values_selected
2023-07-08 16:50:42 +02:00
Sébastien Helleu
4c0c7d9adc
fset: add missing enum in /help fset
2023-07-08 14:45:25 +02:00
Sébastien Helleu
8985607951
fset: fix mouse actions when second format is used
...
The mouse actions now properly handle the case where options are displayed on
multiple lines to calculate the option index in list.
2023-07-08 13:56:22 +02:00
Sébastien Helleu
89137552a7
core: display focus hashtable for debug even if no key is matching
2023-07-08 13:31:36 +02:00
Sébastien Helleu
5b2cf75f6e
fset: allow long type name in type filter
2023-07-08 13:30:37 +02:00
Sébastien Helleu
481e8f197d
core: use type "enum" in options
2023-07-08 13:29:45 +02:00
Sébastien Helleu
66cb9f6ea2
core: add option type "enum" ( closes #1973 )
...
The type "enum" replaces type "integer" when used with string values.
For compatibility, any option created with type "integer" and string values is
automatically created to "enum" on creation, with no error.
2023-07-08 13:28:40 +02:00
Sébastien Helleu
8f9d88edd0
ci: add workaround for broken brew update
2023-07-06 22:24:15 +02:00
Sébastien Helleu
f1e372b5e2
fset: remove extra spaces between min and max values when second format is used
2023-07-06 22:05:11 +02:00
Sébastien Helleu
7b6c9328be
core: add quotes around key names in /help key
2023-07-05 21:23:47 +02:00
Nils Görs
4fa9ddc6b9
core: update German translations
2023-07-05 20:32:48 +02:00
Sébastien Helleu
d7a6fcba5f
buflist: increase max number of buflist items from 3 to 5 ( closes #1703 )
2023-07-04 22:03:05 +02:00
Sébastien Helleu
f811621611
script: fix buffer used by command /script list -i|-il|-o|-ol
...
The command is now executed on the buffer where it is received instead of the
current buffer (in most cases this is the same buffer, but could be different
sometimes).
2023-07-04 21:57:41 +02:00
Sébastien Helleu
6c8d6eef58
script: fix cursor position after /script list -i or /script list -il
2023-07-04 21:56:52 +02:00
Sébastien Helleu
59cdade5f0
core: fix cursor position after /plugin list -i or /plugin list -il
2023-07-04 21:56:22 +02:00
Sébastien Helleu
e5586e14d9
trigger: add options -o, -ol, -i and -il in command /trigger list ( closes #1953 )
2023-07-04 21:55:21 +02:00
Sébastien Helleu
b43883a814
core: check that ptr_value is not NULL
2023-07-04 19:15:20 +02:00
Sébastien Helleu
20560f0a63
core: keep keys ctrl-H and ctrl-? (in lower case) if they were manually bound to custom commands in a previous version
2023-07-04 19:10:04 +02:00
Sébastien Helleu
e36b066dc8
core: add key ctrl-backspace in /help key (issue #1975 )
2023-07-04 18:45:11 +02:00
Sébastien Helleu
b696e3d67f
doc: fix anchor links in auto-generated files
2023-07-04 18:31:03 +02:00
Sébastien Helleu
7340fd1637
core: update ChangeLog
2023-07-03 23:02:58 +02:00
Sébastien Helleu
f03e2ff95c
core: fix styles
2023-07-03 23:02:25 +02:00
Trygve Aaberge
3247974eb4
core: don't send key_pressed signal again for the same key press
...
If you press an incomplete key sequence, previously WeeChat would send
the key_pressed signal again for the same keys on the next key.
E.g. if you press escape and then 1, previously you would get the
key_pressed signal with signal_data `\x01[` when you pressed escape, and
then key_pressed with `\x01[` again when you pressed 1 (plus key_pressed
with `1` for the 1 key). So two signals for the escape key, even though
it was only pressed once.
With this patch, you only get one signal for each key press. So one with
`\x01[` when you press escape and then one with `1` when you press 1.
2023-07-03 23:02:23 +02:00
Trygve Aaberge
824cfb6427
core: don't send key_combo_* signals for incomplete keys
...
Version 4.0.0 (specifically commit 1f5c791c3 ) changed the key handling
so key_combo_* signals were sent for each character in a sequence,
rather than just when the sequence is finished. This broke parts of the
vimode.py script.
E.g. for the up arrow, 3.8 sends key_combo_default signal once with the
signal_data `\x01[[A`, while 4.0.0 sends it three times with the
signal_data `\x01[`, `\x01[[` and `\x01[[A`.
With this patch, the previous behavior is brought back. There is one
small change though. In 3.8 if you press escape one or two times it
doesn't send key_combo_default, but if you press it three or more times
it sends it for each escape press. With this patch, it's never sent for
plain escape presses, only when the sequence is finished with some other
key.
This is intentional, as getting key_combo_default for escape presses
doesn't make sense since it's not a finished combo, and the behavior of
3.8 where you got it after three or more key presses was most likely
unintentional as it just happened because it didn't match any key
bindings anymore (there are key bindings starting with one or two escape
characters, but not more).
2023-07-03 23:02:21 +02:00
Nils Görs
7b5585239f
core: update German translations
2023-07-01 12:20:57 +02:00
Sébastien Helleu
92e5696236
core: update stable version to 4.0.1
2023-07-01 11:44:55 +02:00
Sébastien Helleu
a80f4c7681
tests: fix hdata tests failure on Alpine 3.18
2023-07-01 09:53:03 +02:00
Sébastien Helleu
930b42aecf
tests/relay: fix crash in tests on Alpine 3.18
2023-07-01 09:43:56 +02:00
Sébastien Helleu
c84274cd2b
build: fix detection of PHP 8.2 on Alpine 3.18
2023-07-01 09:15:00 +02:00
Sébastien Helleu
b13ed3b816
core: add version 4.0.1 in ChangeLog and release notes
2023-07-01 09:12:51 +02:00
Sébastien Helleu
b52047c69e
guile: fix crash on quit with Guile < 3 (issue #1965 )
2023-06-27 21:45:15 +02:00
Trygve Aaberge
b551d6f247
core: check for newline characters in string_is_whitespace_char
...
This fixes a bug where if you had multiple lines in the input and
pressed ctrl-w when the cursor was after the first word of any line but
the first, it would delete both the word before the cursor and the last
word on the preceding line.
2023-06-27 21:28:24 +02:00
Sébastien Helleu
4c9fd4a625
doc/faq: mention script go.py for an easy jump to buffers
2023-06-27 19:14:14 +02:00
Sébastien Helleu
fc41ad336d
api: do not convert option name to lower case in API functions config_set_plugin and config_set_desc_plugin
2023-06-27 12:58:34 +02:00
Sébastien Helleu
1d4509ddd8
irc: fix display of country code in message 344 received as whois geo info (issue #1736 )
2023-06-26 22:12:31 +02:00
Sébastien Helleu
b4da825f60
irc: sent "QUIT" message to servers connected with TLS on /upgrade
2023-06-26 22:06:46 +02:00
Sébastien Helleu
ca35b67307
irc: display commands 716/717 in private buffer (if present) ( closes #146 )
...
Commands 716/717 are returned if the target user has mode +g, they look like
this:
:server 716 my_nick bob :is in +g mode and must manually allow you to message them. Your message was discarded.
:server 717 my_nick bob :has been informed that you messaged them.
2023-06-26 21:59:55 +02:00
Sébastien Helleu
f62022e812
core: add variables "_chat_focused_line_bol" and "_chat_focused_line_eol" in focus data ( closes #1955 )
...
These variables are the same as "_chat_bol" and "_chat_eol" except that they
stop at the beginning of the focused line (not the whole message displayed, in
case message has multiple lines separated by "\n").
2023-06-26 21:55:48 +02:00
Sébastien Helleu
54dd19da92
api: add info "buffer" ( closes #1962 )
...
This info returns a pointer buffer with its full name.
2023-06-26 21:35:49 +02:00
Sébastien Helleu
bc4294e297
core: fix level of section title in release notes
2023-06-26 21:22:28 +02:00
Sébastien Helleu
5e0ca4740b
core: display actual key name and command with key Alt+k
...
Key Alt+K (upper K) is removed as well as commands `/input grab_raw_key` and
`/input grab_raw_key_command`.
2023-06-26 21:21:12 +02:00
Sébastien Helleu
70c41f614a
irc: reply to a CTCP request sent to self nick ( closes #1966 )
2023-06-25 22:11:34 +02:00
Sébastien Helleu
e0c8f2867d
core: add missing space in French translation
2023-06-25 22:10:15 +02:00
Sébastien Helleu
763b8ec050
core: force key "return" to command "/input return" when migrating legacy keys
2023-06-25 22:10:04 +02:00
Sébastien Helleu
9d0d8231e8
core: add option weechat.color.status_name_insecure in ChangeLog and release notes
2023-06-25 15:17:16 +02:00
Sébastien Helleu
11177a0967
core: fix format in Czech translation
2023-06-25 00:49:44 +02:00
Krzysztof Korościk
c5a3bbc474
doc: updated polish translation
2023-06-24 22:45:35 +02:00
Sébastien Helleu
50bb175e7f
Version 4.1.0-dev
2023-06-24 22:41:18 +02:00
Sébastien Helleu
1c449f3c2e
Version 4.0.0
2023-06-24 22:00:30 +02:00
Sébastien Helleu
7c7a9484fb
doc/user: fix typo in French translation
2023-06-23 12:01:56 +02:00
Nils Görs
eacb807448
core: update German translations
2023-06-23 07:43:45 +02:00
Sébastien Helleu
001cf3376d
core: update ChangeLog
2023-06-19 07:30:31 +02:00
Sébastien Helleu
e1d1831fa8
core: ignore rest of config file if config version is invalid or not supported
2023-06-17 13:13:11 +02:00
Nils Görs
3e42d95f40
core: update German translations
2023-06-16 14:31:16 +02:00
Sébastien Helleu
1b78cd3bd2
exec: fix URL to plugin API reference in /help exec
2023-06-15 22:07:34 +02:00
Sébastien Helleu
9d7766ce3d
doc/user: fix URL to plugin API reference
2023-06-15 22:04:45 +02:00
Sébastien Helleu
2d25cac44a
relay: add IPv6 example in /help relay.network.bind_address
2023-06-15 22:04:16 +02:00
Sébastien Helleu
09b512337a
core: replace Debian Bullseye by Bookworm in Debian build script
2023-06-12 21:26:21 +02:00
Sébastien Helleu
3af4ccff38
doc/user: update dependencies versions to Debian Bookworm
2023-06-12 21:26:00 +02:00
Sébastien Helleu
964d882c61
doc/user: fix description of key ctrl+q in search context
2023-06-12 18:38:21 +02:00
Nils Görs
a9544af15c
core: update German translations
2023-06-11 17:54:43 +02:00
Sébastien Helleu
8c73634e1b
relay: fix crash on /upgrade when at least a client is connected with weechat protocol
2023-06-11 14:33:32 +02:00
Sébastien Helleu
fc91ee59c9
core: add completions "filters_names_disabled" and "filters_names_enabled"
...
They are used in completion of commands `/filter disable` and
`/filter enable`.
2023-06-10 22:38:54 +02:00
Sébastien Helleu
1145d9f188
trigger: add completions "trigger_names_disabled" and "trigger_names_enabled"
...
They are used in completion of commands `/trigger disable` and
`/trigger enable`.
2023-06-10 20:30:52 +02:00
Sébastien Helleu
5de7152383
core: update instructions in cygport file
2023-06-10 18:16:24 +02:00
Sébastien Helleu
5d06ab76df
exec: remove trailing "M" (carriage return) in output of commands
...
Regression was indirectly caused by commit
d18f68e497 in core that allows to display all
control chars in buffers.
But the fix is in exec plugin: end of line in command output can now be "\r\n"
in addition to a single "\n".
2023-06-10 09:51:04 +02:00
Sébastien Helleu
2eacbe6153
core: add new IRC capabilities in release notes
2023-06-07 18:23:42 +02:00
Sébastien Helleu
0b51c2d0be
doc: increase sectnumlevels to 2 (user/scripting/quickstart/relay/dev)
2023-06-06 19:13:20 +02:00
Sébastien Helleu
4185e7b9f6
guile: fix crash when plugin is loaded on GNU/Hurd ( closes #1951 )
2023-06-05 21:09:27 +02:00
Sébastien Helleu
0d92c8703f
debian: update changelog
2023-06-05 19:09:25 +02:00
Sébastien Helleu
dccd1a348c
doc: fix URLs to WeeChat docs
2023-06-05 19:08:12 +02:00
Sébastien Helleu
ab9b8e0b01
tests: fix checks on integers in relay irc protocol tests
2023-06-05 19:04:05 +02:00
Sébastien Helleu
7f07782208
tests: add missing include of string.h in logger tests
2023-06-05 19:02:57 +02:00
Sébastien Helleu
7a754d93ab
doc/relay: add option "escape_commands" in handshake response and examples
2023-06-05 19:01:46 +02:00
Sébastien Helleu
3a4f51b352
Version 4.0.0-rc1
2023-06-05 08:18:10 +02:00
Sébastien Helleu
48b35bdc63
logger: fix display of multiline messages in backlog ( closes #1926 )
2023-06-05 07:29:21 +02:00
Sébastien Helleu
4e705afdf6
tests: add tests on logger tail functions (issue #1926 )
2023-06-05 07:29:10 +02:00
Sébastien Helleu
615069caef
logger: return arraylist instead of custom linked list in logger_tail_file (issue #1926 )
2023-06-05 07:29:01 +02:00
Nils Görs
5e35ead044
doc: update German documentation
2023-06-04 11:17:53 +02:00
Nils Görs
4712fabbb0
core: update German translations
2023-06-04 11:12:59 +02:00
Sébastien Helleu
e04d8894a0
irc: add tag "new_host_xxx" in message displayed for command CHGHOST ( closes #1808 )
2023-06-04 09:45:47 +02:00
Sébastien Helleu
7f4c3a660a
core: update ChangeLog (issue #1950 )
2023-06-03 21:40:55 +02:00
Sébastien Helleu
31e2e7d45c
doc/user: add new FIFO syntax (issue #1950 )
2023-06-03 21:40:51 +02:00
Trygve Aaberge
43dee8ce54
fifo: allow using escape characters
...
This allows you to use escape characters if you start the fifo command
with \ instead of *, in the same way as the escape_commands option in
the relay protocol. This allows you to send commands consisting of
multiple lines by using \n if the buffer has input_multiline set.
2023-06-03 21:31:38 +02:00
Sébastien Helleu
682fc40708
irc: add option irc.look.display_host_notice
2023-06-03 21:15:58 +02:00
Sébastien Helleu
482fe6604c
relay: add handshake option "escape_commands" in weechat protocol
2023-06-03 20:06:29 +02:00
Nils Görs
2660164118
core: update German translations
2023-06-03 19:36:58 +02:00
Sébastien Helleu
5e85bce2b7
core: specify irc protocol for relay changes
2023-06-03 17:28:15 +02:00
Sébastien Helleu
dd4eb80e81
doc: fix formatting issues with links that target a blank window
2023-06-03 17:08:17 +02:00
Sébastien Helleu
498aa3256f
relay: add support of capability "echo-message" ( closes #1949 )
2023-06-03 14:15:55 +02:00
Sébastien Helleu
ac9dc3b9c8
irc: add infos "irc_server_cap" and "irc_server_cap_value" (issue #1949 )
2023-06-03 14:15:49 +02:00
Sébastien Helleu
911c976f9b
tests: add tests on relay "irc" protocol
2023-06-02 18:50:45 +02:00
Sébastien Helleu
5eb1a31552
irc: add missing "user" in documentation of functions
2023-06-02 18:50:45 +02:00
Sébastien Helleu
02a20507cb
relay: fix connection with IRC clients sending "CAP REQ :" (without capability) and not sending "CAP END" (issue #1040 , issue #1796 )
...
The bug was fixed in version 2.0 (issue #1040 ) but a regression in version 3.7
happened while using the new IRC parser for message arguments (issue #1796 ,
commit 96ed471261 ).
2023-06-02 18:50:45 +02:00
Sébastien Helleu
3d8c55722c
relay: add modifiers "relay_client_irc_in", "relay_client_irc_out1" and "relay_client_irc_out"
2023-06-02 18:50:45 +02:00
Trygve Aaberge
19a0cfe72d
core: fix weechat.look.align_multiline_words not working
...
This option was broken with commit 031bd45e3 .
2023-06-02 18:48:47 +02:00
Sébastien Helleu
f7149dc7be
tests: create and close server buffer in tests on function irc_join_split
2023-05-31 23:39:19 +02:00
Sébastien Helleu
c0300ec0a4
tests: fix close of channel buffers after tests on function irc_join_split
2023-05-31 23:00:34 +02:00
Sébastien Helleu
310af25226
ruby: fix crash in display of exception backtrace with Ruby 3 (issue #1631 , issue #1886 )
2023-05-31 20:56:14 +02:00
Nils Görs
7f11d44e40
core: update German translations
2023-05-31 07:18:00 +02:00
Ivan Pešić
47bca29e3c
doc: update Serbian documentation
2023-05-30 21:06:53 +02:00
Ivan Pešić
614f423498
core: update Serbian messages translation
2023-05-30 21:06:53 +02:00
Sébastien Helleu
71b85f1238
core: send all command line parameters not beginning with a dash to all plugins, add info "auto_load_scripts"
...
This fixes an issue with IRC URL given on command line when it starts with
`ircs://` or `irc6://`: the server is not created at all (only `irc://` works
fine).
2023-05-30 20:56:25 +02:00
Sébastien Helleu
eda62e1218
fset: reset color immediately after the color name (issue #1920 )
2023-05-30 07:39:11 +02:00
Sébastien Helleu
f917d22655
core: update ChangeLog (issue #1920 )
2023-05-30 07:37:18 +02:00
Nils Görs
c96cc7a008
doc: update German documentation
2023-05-29 17:39:29 +02:00
Trygve Aaberge
6f3a67fdc1
core: set word_end_offset to character after word
...
It seemed strange to me to have word_end_offset point to the last
character in the word, rather than the character after the word,
especially now with the word stopping before a newline character which
meant word_end_offset would be -1 if there was no characters before the
newline character.
2023-05-29 17:10:25 +02:00
Trygve Aaberge
96f41ce4bf
core: fix chat colors at certain positions not being applied
...
The new rendering of multiline lines had some issues with colors at
certain positions not being applied. The color would not be applied if
the color code was at either of these positions:
- At the start of a line after a newline character
- At the end of a line after a space and before a newline character
- At a line by itself before a newline character
The way I had done it by considering newline characters as a word in
gui_chat_get_word_info with a variable specifying that it's newline
characters became messy and didn't really make sense, so rather than
doing this, I changed gui_chat_get_word_info to stop before the first
newline character. That way, we can just check if we are at a newline
character at the start of the loop, and don't need any more special
handling.
Fixes #1928
2023-05-29 17:10:25 +02:00
Sébastien Helleu
f1a826a116
tests: add tests on manual CTCP ACTION sent to IRC channel
2023-05-29 11:13:49 +02:00
Sébastien Helleu
a4c2d7f808
irc: fix display of CTCP ACTION sent without parameters nor space
2023-05-29 11:10:25 +02:00
Sébastien Helleu
3826d1150d
irc: remove unneeded extra check on "\01ACTION " in irc_input_user_message_display
2023-05-29 11:04:50 +02:00
Sébastien Helleu
031bcf5ff2
irc: hide password in messages to nickserv with cap echo-message enabled (issue #139 )
2023-05-29 09:49:41 +02:00
Sébastien Helleu
ea38779c85
irc: add command /action ( closes #201 , issue #1577 ), remove alias action
2023-05-29 09:44:13 +02:00
Sébastien Helleu
193d290285
alias: add option missing in command /alias
2023-05-27 20:20:31 +02:00
Sébastien Helleu
50f5be70aa
alias: add alias action to send a CTCP ACTION to a channel or a nick (issue #1577 )
2023-05-27 20:07:37 +02:00
Sébastien Helleu
1651c48856
irc: add missing host tag in self messages with cap echo-message enabled (issue #139 )
2023-05-27 16:49:08 +02:00
Sébastien Helleu
649b9d0ca6
irc: fix display of STATUSMSG CTCP ACTION to channel with cap echo-message enabled (issue #139 , issue #1577 )
2023-05-27 16:49:08 +02:00
Sébastien Helleu
a41dff7acc
irc: fix display of outgoing CTCP when channel/private buffer doesn't exist
2023-05-27 16:49:08 +02:00
Sébastien Helleu
3a0141174b
irc: fix display of outgoing STATUSMSG CTCP ACTION without arguments
2023-05-27 16:49:08 +02:00
Sébastien Helleu
dbcb8d3dbf
irc: remove extra space in CTCP ACTION message sent without arguments
...
Now when doing `/me` (without arguments), the message sent is:
PRIVMSG #test :\x01ACTION\x01
instead of:
PRIVMSG #test :\x01ACTION \x01
2023-05-27 16:49:08 +02:00
Sébastien Helleu
a2e73d64d6
irc: fix split of CTCP message with no arguments
2023-05-27 16:49:08 +02:00
Sébastien Helleu
0babf5db23
irc: display STATUSMSG actions differently from standard actions on channels ( closes #1577 , issue #139 )
2023-05-27 16:48:56 +02:00
Sébastien Helleu
93d447ffc7
irc: fix send of empty action with /me command
2023-05-27 10:04:15 +02:00
Sébastien Helleu
be0b082463
core: remove WeeChat website from SRC_URI in cygport file
2023-05-26 18:03:20 +02:00
Sébastien Helleu
80532862d5
core: update ChangeLog
2023-05-26 18:03:08 +02:00
Sébastien Helleu
a6769e46f9
tests: add tests on IRC message/notice/action/CTCP sent with cap echo-message enabled (issue #139 )
2023-05-26 18:02:50 +02:00
Sébastien Helleu
b61cbefd30
tests: remove capabilities added after the end of tests
2023-05-26 18:02:01 +02:00
Sébastien Helleu
30b86e08fd
tests: add tests on IRC message/notice/action/CTCP sent (issue #139 )
2023-05-26 12:44:15 +02:00
Sébastien Helleu
10b803fd59
irc: add missing nick tag in self CTCP ACTION displayed (issue #139 )
2023-05-26 12:36:01 +02:00
Sébastien Helleu
4c6f503cc7
irc: display CTCP ACTION to channel on the channel buffer (issue #139 , closes #207 )
2023-05-26 12:31:22 +02:00
Sébastien Helleu
c1ee493073
doc/user: rewrite IRC smart filter chapter, add detail on all filtered messages
2023-05-26 08:53:20 +02:00
Sébastien Helleu
e8f508a7cc
doc/user: display 3 levels instead of 2 in TOC
2023-05-26 07:13:04 +02:00
Nils Görs
afdd24591a
core: update German translations
2023-05-25 22:58:59 +02:00
Sébastien Helleu
2654961e1c
irc: display actions sent with /me in private buffer instead of server buffer (issue #139 )
2023-05-25 22:43:54 +02:00
Sébastien Helleu
e50be16730
irc: fix display of actions sent with /me (issue #139 )
2023-05-25 22:34:03 +02:00
Sébastien Helleu
d9789e522f
irc: fix duplicated CTCP messages displayed when capability "echo-message" is enabled (issue #139 )
2023-05-25 22:15:41 +02:00
Sébastien Helleu
809f59dfd1
irc: hide messages sent with /msg to a nick when capability "echo-message" is enabled (issue #139 )
2023-05-25 19:25:01 +02:00
Sébastien Helleu
45fb1ae4ba
irc: hide CTCP messages sent with /ctcp when capability "echo-message" is enabled (issue #139 )
2023-05-25 19:22:40 +02:00
Sébastien Helleu
3a8525bb95
irc: hide self actions sent with /me when capability "echo-message" is enabled (issue #139 )
2023-05-25 19:19:11 +02:00
Sébastien Helleu
f9e358b76c
tests: remove import of unused headers
2023-05-23 21:52:16 +02:00
Sébastien Helleu
ad1ae12321
doc/user: move IRCv3 chapter outside "Servers"
2023-05-23 21:49:54 +02:00
Sébastien Helleu
64c3f3f0cd
irc: add support of capability "echo-message" ( closes #139 )
2023-05-23 21:49:54 +02:00
Sébastien Helleu
8f5a3cb639
irc: fix display of status privmsg/notice, add missing tags in messages (issue #139 )
...
The status PRIVMSG and NOTICE are now displayed the same way for outgoing and
received messages:
Msg(alice) -> @#test: message for ops
Notice(alice) -> @#test: notice for ops
And any message like this is displayed with these tags if the nick is self
nick (case of a bouncer or if capability "echo-message" is enabled):
"self_msg", "notify_none", "no_highlight".
2023-05-23 21:49:53 +02:00
Sébastien Helleu
8abde49ba2
irc: fix order of tags in outgoing messages
...
The order of tags in message doesn't matter, but this is for the sake of
consistency with the other messages displayed.
2023-05-23 21:49:53 +02:00
Sébastien Helleu
20bfe4c1ba
irc: add missing tags "irc_cap" and "log3" in cap messages (client capability)
2023-05-23 21:49:53 +02:00
Sébastien Helleu
3cb5f25681
irc: add missing tag "log3" in notify messages
2023-05-23 21:49:53 +02:00
Sébastien Helleu
f3e1da894b
tests: check tags in messages displayed by IRC plugin
2023-05-23 21:49:53 +02:00
Sébastien Helleu
eb7435f8b9
tests: separate prefix from message in recorded messages
...
The record functions are moved to tests-record.cpp.
2023-05-22 20:43:16 +02:00
Sébastien Helleu
126d3559ca
script: remove trailing "J" (line feed char) in source of scripts displayed
...
Regression was indirectly caused by commit
d18f68e497 in core that allows to display all
control chars in buffers.
But the fix is in script plugin: when the script is downloaded and read line by
line, trailing "\r" and "\n" are removed, and therefore not displayed.
2023-05-22 20:40:45 +02:00
Sébastien Helleu
c0b3f63985
core: add note about config files incompatibility in release notes
2023-05-21 09:01:10 +02:00
Sébastien Helleu
4f5dac4f85
irc: add batch files for translations
2023-05-20 17:10:59 +02:00
Sébastien Helleu
c3c218035a
logger: add option logger.file.log_conditions ( closes #1942 )
2023-05-20 17:08:34 +02:00
Sébastien Helleu
7461a5cb87
xfer: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:33 +02:00
Sébastien Helleu
db931b7806
trigger: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:31 +02:00
Sébastien Helleu
cbde92c44e
script: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:30 +02:00
Sébastien Helleu
00f4ae760d
relay: create buffers with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:28 +02:00
Sébastien Helleu
1ad45598b5
fset: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:27 +02:00
Sébastien Helleu
b1759ab25a
exec: create buffer with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:25 +02:00
Sébastien Helleu
3ca3ea32fd
irc: create server/channel/raw buffers with function buffer_new_props (issue #1942 )
...
With this function, buffer properties are set when the buffer is created and
can be read immediately by other plugins/scripts, for example in a callback of
signal "buffer_opened".
2023-05-20 17:08:20 +02:00
Sébastien Helleu
f767db22a8
doc: reduce toc levels and numbering in sections (user/API/scripting/relay/dev)
2023-05-20 08:37:02 +02:00
Sébastien Helleu
ecdcf239fe
doc: move toc and section asciidoctor attributes from docs to CMakeLists.txt
2023-05-20 08:15:23 +02:00
Sébastien Helleu
b9cc0cf839
core: update ChangeLog ( closes #1260 )
2023-05-18 13:52:46 +02:00
Simmo Saan
3c3bb933e9
irc: optimize and reuse irc_channel_rejoin
2023-05-18 13:51:14 +02:00
Simmo Saan
6edc88f7d6
irc: use key when /join-ing in open channel buffer
2023-05-18 13:46:43 +02:00
Sébastien Helleu
de3ee174e4
core: update ChangeLog ( closes #1140 , closes #1190 )
2023-05-18 11:52:43 +02:00
Sébastien Helleu
6c567c813e
core: update translations
2023-05-18 11:51:25 +02:00
Sébastien Helleu
a2b21df6ab
alias: use dynamic string to replace alias arguments
2023-05-18 11:48:15 +02:00
Sébastien Helleu
338f7028ec
tests: add tests on alias functions
...
Functions tested:
- alias_valid
- alias_search
- alias_string_add_word
- alias_string_add_word_range
- alias_string_add_arguments
- alias_replace_args
2023-05-18 11:10:54 +02:00
Sébastien Helleu
a0894a794b
alias: return empty string instead of NULL in function alias_replace_args
2023-05-18 11:08:37 +02:00
Sébastien Helleu
6095a0fe40
alias: return NULL if alias or user arguments are NULL in function alias_replace_args
2023-05-18 11:08:08 +02:00
Sébastien Helleu
8d838e89ee
alias: add example in comment of function alias_replace_args
2023-05-18 11:07:46 +02:00
Sébastien Helleu
e237f7488f
alias: add "$&" in comment of function alias_replace_args
2023-05-18 11:07:12 +02:00
nobody
098bbb6927
alias: add auto-escaping special variable
2023-05-18 10:17:59 +02:00
Sébastien Helleu
100509866f
relay: rename variable "ptr_option" to "ptr_path"
2023-05-18 09:53:57 +02:00
Sébastien Helleu
caf166eb90
relay: make TLS certificate/key loading error handling more verbose ( closes #1558 )
2023-05-18 09:51:59 +02:00
Sébastien Helleu
9a0eda2433
core: fix refresh of bar item "input_search" after buffer switch in root bars ( closes #1939 )
2023-05-18 09:21:16 +02:00
Sébastien Helleu
1360489a05
core: add note in GitHub question issue template
...
The question must be first asked on the #weechat channel.
2023-05-18 09:04:55 +02:00
Sébastien Helleu
43553f7c28
core: update ChangeLog ( closes #337 , closes #965 )
2023-05-17 21:43:43 +02:00
arza
99b84a76ad
irc: start from the beginning of nicks at automatic reconnection ( closes #337 )
2023-05-17 21:42:00 +02:00
Sébastien Helleu
6ae04c4947
core: update ChangeLog ( closes #1688 )
2023-05-17 21:07:24 +02:00
Sébastien Helleu
fbf68dcc14
irc: get value of "msg_max_length" from isupport token "LINELEN" on upgrade from WeeChat < 4.0.0 (issue #1927 )
2023-05-17 21:03:44 +02:00
Sébastien Helleu
359ec5d2db
irc: add field "utf8only" in IRC server structure
2023-05-17 20:49:27 +02:00
Valentin Lorentz
980b075ce9
irc: Implement the UTF8ONLY IRCv3 specification
...
https://ircv3.net/specs/extensions/utf8-only
2023-05-17 16:37:19 +02:00
Sébastien Helleu
d0f1859ef5
core: add variable CTEST_OUTPUT_ON_FAILURE in release script
2023-05-17 07:17:26 +02:00
Sébastien Helleu
6d32a99d50
trigger: make default triggers compatible with multiline input ( closes #1935 )
...
Changed triggers:
- cmd_pass
- cmd_pass_register
- server_pass
2023-05-16 21:34:30 +02:00
Sébastien Helleu
1f21cdc0bd
irc: update secure data when server autojoin option contains ${sec.data.xxx} and option autojoin_dynamic is enabled ( closes #1934 )
2023-05-16 21:03:22 +02:00
Sébastien Helleu
e11ce668a2
doc/api: add note about hashtable removal in function info_get_hashtable
2023-05-16 20:15:20 +02:00
Sébastien Helleu
91bcfbb4e8
core: move creation of info_hashtable "secured_data" in plugin-api-info.c
2023-05-16 20:00:48 +02:00
Sébastien Helleu
17f3687e28
core: fix partial completion when the common prefix found is empty ( closes #340 )
2023-05-16 19:45:12 +02:00
Sébastien Helleu
357323b8fc
typing: remove nicks typing even when option typing.look.enabled_self is off ( closes #1718 )
2023-05-16 13:29:09 +02:00
Sébastien Helleu
cfc85b7fea
typing: fix type and name of variable for key in hashtable typing_status_nicks
2023-05-16 13:23:07 +02:00
Sébastien Helleu
2a3d98c996
irc: display command 437 on server buffer when nickname cannot change while banned on channel ( closes #88 )
2023-05-16 13:15:45 +02:00
Sébastien Helleu
8d35e67dd6
irc: add modifier "irc_cap_sync_req" ( closes #1767 )
2023-05-15 20:10:28 +02:00
Sébastien Helleu
d857c91a59
irc: add comments in "cap" callback
2023-05-15 20:02:45 +02:00
Sébastien Helleu
518c0e3ae3
irc: remove unused variable
2023-05-15 08:10:58 +02:00
Sébastien Helleu
20b7f406f8
irc: fix use of uninitialized variable
2023-05-15 08:10:03 +02:00
Sébastien Helleu
e589f3471b
doc/user: update note about chars replaced in IRC tags (trigger)
2023-05-15 08:08:42 +02:00
Sébastien Helleu
2c22626106
trigger: use new format for IRC tags in messages
2023-05-15 07:57:16 +02:00
Sébastien Helleu
bd4507e99d
irc: fix format of IRC tags displayed in messages ( closes #1929 )
...
Changes:
- use "=" to separate key from value, add it only if value is set (any string,
including empty string)
- do not convert "_" to "-" in key
2023-05-14 21:25:20 +02:00
Sébastien Helleu
46b9428f9e
tests: reverse arguments in calls to STRCMP_EQUAL
2023-05-14 18:52:23 +02:00
Nils Görs
78ebe63105
core: update German translations
2023-05-14 15:50:41 +02:00
Sébastien Helleu
1aded6eaf4
core: update translations (issue #1923 )
2023-05-14 15:33:37 +02:00
Sébastien Helleu
a6b8c95519
irc: do not display multiline message if capability "draft/multiline" is not enabled (issue #1923 )
2023-05-14 15:33:37 +02:00
Sébastien Helleu
060cb48094
irc: ignore BATCH commands when capability "batch" is not enabled (issue #1292 )
2023-05-14 15:33:30 +02:00
Sébastien Helleu
283c9d7ccf
irc: do not allow send of empty messages (single line or multiline)
2023-05-14 15:32:47 +02:00
Sébastien Helleu
ac83130dd7
irc: add test of privmsg message parsing with empty text
2023-05-14 15:32:47 +02:00
Sébastien Helleu
c31af39ada
irc: set "input_multiline" to 1 in buffers only if capability draft/multiline is enabled (issue #1923 )
2023-05-14 15:32:43 +02:00
Sébastien Helleu
537d18ede5
core: allow to reset buffer property "input_multiline" to 0 even if there are lines in buffer (issue #1923 )
2023-05-14 15:32:39 +02:00
Sébastien Helleu
128fbe0d5b
irc: add support of "LINELEN" in message 005 (max message length in bytes) ( closes #1927 )
2023-05-14 15:32:39 +02:00
Sébastien Helleu
1116474c45
irc: reset all internal servers variables when disconnecting
2023-05-14 15:32:39 +02:00
Sébastien Helleu
176a106771
irc: add support of capability "draft/multiline" ( closes #1923 )
2023-05-14 15:32:39 +02:00
Sébastien Helleu
e8b5d73421
irc: return arraylist instead of hashtable in function irc_server_sendf (issue #1923 )
2023-05-14 15:32:35 +02:00
Sébastien Helleu
2154b440d2
irc: don't split messages on "\n" in function irc_server_sendf (issue #1923 )
...
The function now allows only a single message. Newline chars ("\n") are allowed
in messages but not used as message separator.
This is a preparation work for the support of capability "draft/multiline".
2023-05-14 15:32:26 +02:00
Sébastien Helleu
2c39906816
irc: rename constant IRC_COMMAND_CAP_SUPPORTED_COMPLETION to IRC_COMMAND_CAP_SUPPORTED
2023-05-13 19:45:10 +02:00
Sébastien Helleu
c0f574d036
doc: group all CMake files into a single one to build all docs (all languages)
2023-05-13 19:44:14 +02:00
Sébastien Helleu
6415c09a07
core: add quotes around paths in CMake files ( closes #29 )
2023-05-13 11:59:18 +02:00
Sébastien Helleu
adbfd27660
core: fix completion after newline in input ( closes #1925 )
2023-05-12 17:53:02 +02:00
Sébastien Helleu
6d7f10ef20
core: fix execution of multiple commands separated by newline when there are no spaces
...
For example typing this on core buffer:
/t1
/t2
was not executing the two commands but sent the text to the buffer instead.
This is because WeeChat thinks it's a path, and the newline should indicate
it's not (like a space before the next slash: "/t1 /t2" is a command, not a
path, but "/t1/t2" is considered a path).
2023-05-05 20:28:11 +02:00
Sébastien Helleu
25d7192677
api: don't split on newline by default in functions command and command_options when input_multiline is set to 0
...
The API functions `command` and `command_options` (when `split_newline` = 0,
which is the default value) don't split on newline and then the first line is
executed and the subsequent lines (after "\n") are ignored.
There are no changes when the input has multiple lines filled by the user: the
split is done and multiple commands are executed (for example if the user is
pasting multiple commands to execute).
2023-05-04 21:06:32 +02:00
Sébastien Helleu
bbbe83370f
doc/user: add missing French translation for cursor key l
2023-05-04 07:09:12 +02:00
Sébastien Helleu
c73191ab05
doc/scripting: add missing French translation for Tcl null values
2023-05-04 07:06:29 +02:00
Nils Görs
7aaa617643
core: update German translations
2023-05-03 22:58:22 +02:00
Sébastien Helleu
f6b69c9098
irc: add support of capability "batch" ( closes #1292 )
2023-05-03 22:11:31 +02:00
Ivan Pešić
bd5e8dc33b
doc: Update Serbian documentation
2023-05-03 20:29:27 +02:00
Ivan Pešić
e6bddcafee
core: Update Serbian translation
2023-05-03 20:29:27 +02:00
Nils Görs
629afd3301
core: update German translations
2023-05-01 22:02:02 +02:00
Sébastien Helleu
21f972b0a5
trigger: add translation for first line of displayed triggers
2023-05-01 21:44:37 +02:00
Sébastien Helleu
e75009a461
core: add enabled/disabled status color in output of /filter list ( closes #1820 )
2023-05-01 20:23:48 +02:00
Sébastien Helleu
385b1d0133
core: remove options trigger.color.trigger and trigger.color.trigger_disabled (issue #1820 )
...
These options are used instead:
- weechat.color.chat_status_disabled
- weechat.color.chat_status_enabled
2023-05-01 20:16:59 +02:00
Sébastien Helleu
b8f9b83500
core: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled (issue #1820 )
2023-05-01 20:12:56 +02:00
Sébastien Helleu
5c245af669
core: move line from "New features" to "Build"
2023-05-01 19:14:33 +02:00
Nils Görs
87b7d03cce
core: update German translations
2023-05-01 18:11:02 +02:00
Sébastien Helleu
ed2ab8a6d0
irc: fix help on sort option in command /autojoin (issue #1876 )
2023-05-01 17:49:46 +02:00
Sébastien Helleu
000d550ff8
core: keep only first message line in modifier "weechat_print" when input_multiline is not set in buffer
2023-05-01 17:36:17 +02:00
Nils Görs
d8d00926ff
core: update German translations
2023-05-01 17:33:18 +02:00
Sébastien Helleu
b127bed0fc
irc: add option buffer in command /autojoin sort ( closes #1876 )
2023-05-01 17:02:51 +02:00
Sébastien Helleu
66d79e2d23
core: keep only first message line in hook line when input_multiline is not set in buffer
2023-05-01 14:53:59 +02:00
Nils Görs
9f2e5a98ea
core: update German translations
2023-04-28 08:20:13 +02:00
Sébastien Helleu
f90d8667a4
irc: add ${username} in server options "nicks" and "username", change their default values to use it
2023-04-27 22:59:24 +02:00
Sébastien Helleu
8822843254
core: add missing French translation
2023-04-27 22:43:10 +02:00
Sébastien Helleu
bc5baf1f05
fset: change default value of option fset.color.value_selected from 80 to 159 (issue #1920 )
2023-04-27 22:36:38 +02:00
Nils Görs
3ba2934dfa
core: update German translations
2023-04-27 10:10:46 +02:00
Nils Görs
a025518509
core: update German translations
2023-04-27 08:45:03 +02:00
Sébastien Helleu
2e42da35f9
core: update ChangeLog (issue #1920 )
2023-04-26 21:13:07 +02:00
Sébastien Helleu
4f3524dbac
core: update translations (issue #1920 )
2023-04-26 21:12:56 +02:00
Sébastien Helleu
d35218e991
irc: change default colors (issue #1920 )
...
Default values changed:
- irc.color.reason_quit: default -> 244
- irc.color.topic_new: white -> 36
- irc.color.topic_old: default -> 244
2023-04-26 21:08:16 +02:00
Sébastien Helleu
c12b7ffd3e
core: enable option weechat.look.color_inactive_time by default (issue #1920 )
2023-04-26 21:08:13 +02:00
Sébastien Helleu
156bdc6444
core: change default chat colors (issue #1920 )
...
Default values changed:
- weechat.color.chat_delimiters: green -> 22
- weechat.color.chat_highlight_bg: magenta -> 124
- weechat.color.chat_inactive_window: default -> 240
- weechat.color.chat_nick_colors: add many colors
- weechat.color.chat_nick_offline: default -> 242
- weechat.color.chat_nick_offline_highlight_bg: blue -> 17
- weechat.color.chat_prefix_buffer: brown -> 180
- weechat.color.emphasized_bg: magenta -> 54
- weechat.color.nicklist_away: cyan -> 240
2023-04-26 21:08:12 +02:00
Sébastien Helleu
855f75369d
logger: change default colors (issue #1920 )
...
Default values changed:
- logger.color.backlog_end: default -> 246
- logger.color.backlog_line: default -> 246
2023-04-26 21:08:11 +02:00
Sébastien Helleu
3f2a377e7a
script: change default colors (issue #1920 )
...
Default values changed:
- script.color.status_autoloaded: cyan -> 39
- script.color.text_bg_selected: red -> 24
- script.color.text_date: default -> 65
- script.color.text_date_selected: white -> 50
- script.color.text_delimiters: default -> 240
- script.color.text_description: default -> 249
- script.color.text_extension: default -> 242
- script.color.text_extension_selected: white -> 248
- script.color.text_name: cyan -> 73
- script.color.text_name_selected: lightcyan -> 51
- script.color.text_version: magenta -> 180
- script.color.text_version_loaded: default -> 246
- script.color.text_version_selected: lightmagenta -> 224
2023-04-26 21:08:09 +02:00
Sébastien Helleu
8c9e90524b
fset: enable option fset.look.use_color_value by default (issue #1920 )
2023-04-26 21:08:07 +02:00
Sébastien Helleu
6f1a66924f
fset: add options fset.color.color_name and fset.color.color_name_selected (issue #1920 )
2023-04-26 21:08:06 +02:00
Sébastien Helleu
c4c4ae3715
fset: change default colors (issue #1920 )
...
Default values changed:
- fset.color.description: default -> 242
- fset.color.description_selected: white -> default
- fset.color.line_marked_bg1: default -> 17
- fset.color.line_marked_bg2: default -> 17
- fset.color.line_selected_bg1: blue -> 24
- fset.color.line_selected_bg2: red -> 24
- fset.color.name_changed: brown -> 185
- fset.color.type: green -> 138
- fset.color.type_selected: lightgreen -> 216
- fset.color.value: cyan -> 38
- fset.color.value_changed: brown -> 185
- fset.color.value_selected: lightcyan -> 80
- fset.format.option2: ${color:darkgray} -> ${color:244}
2023-04-26 21:08:04 +02:00
Sébastien Helleu
5973ceffb8
core: change default prefix_suffix char and color (issue #1920 )
...
Default values changed:
- weechat.look.prefix_suffix: "|" -> "│"
- weechat.color.chat_prefix_suffix: green -> 24
2023-04-26 21:08:02 +02:00
Sébastien Helleu
875d6e7e6f
buflist: change default background color of current buffer (issue #1920 )
...
Default value changed:
- buflist.format.buffer_current: "${color:,blue}${format_buffer}" ->
"${color:,17}${format_buffer}"
2023-04-26 21:08:00 +02:00
Sébastien Helleu
cd1d80c1cb
core: change default color of bars and windows separators (issue #1920 )
...
Default value changed:
- weechat.color.separator: blue -> 236
2023-04-26 21:07:56 +02:00
Sébastien Helleu
6d6c99f2ac
core: change default background color of status and title bars (issue #1920 )
...
Default values changed:
- weechat.bar.status.color_bg: blue -> 234
- weechat.bar.status.color_bg_inactive: darkgray -> 232
- weechat.bar.title.color_bg: blue -> 234
- weechat.bar.title.color_bg_inactive: darkgray -> 232
2023-04-26 21:07:50 +02:00
Sébastien Helleu
6f0440e459
core: add option weechat.color.status_name_insecure (issue #1920 )
...
Default value of option weechat.color.status_name_tls is set to white instead
of lightgreen.
Now all servers/channels connected with TLS are white, and those without TLS
are lightmagenta.
2023-04-26 21:07:37 +02:00
Sébastien Helleu
e8c48c0a1f
core: always allow 256 colors, find nearest color if less colors are available in terminal (issue #1920 )
2023-04-26 21:07:26 +02:00
Sébastien Helleu
ff402fb6ec
core: fix infinite loop on startup when running some gui commands before the switch to core buffer is performed ( closes #1917 )
2023-04-26 19:11:54 +02:00
Nils Görs
5481af963c
doc: update German documentation
2023-04-26 11:49:47 +02:00
Nils Görs
6edf0ef003
core: update German translations
2023-04-26 11:46:54 +02:00
Trygve Aaberge
8d430aa2eb
core: fix display bug when drawing partially scrolled multiline
...
If you have a chat line with multiple lines that were scrolled so that
part of it is rendered at the bottom of the chat area, and part of it
falls below the chat area, there was a bug where the prefix_suffix would
be displayed at the end of the last line.
Looks like this happens because the gui_chat_display_prefix_suffix is
called for the line below the last line displayed in the chat area. So
we have to add a check for this so we don't add the prefix_suffix. This
check is copied from gui_chat_display_word which checks for the same.
Fixes #1912
2023-04-26 00:47:02 +02:00
Sébastien Helleu
df6dfcea11
core: move line from "New features" to "Bug fixes" (issue #1882 )
2023-04-26 00:10:37 +02:00
Sébastien Helleu
a22d6a1bf6
core: update ChangeLog
2023-04-26 00:09:53 +02:00
Andrew Potter
71382b6c0f
ruby: Restore default SIGCHLD signal handler on unload
...
fixes #1889
2023-04-26 00:07:54 +02:00
Sébastien Helleu
ac25043b27
core: add option split_return in command /input ( closes #1916 )
2023-04-25 22:10:48 +02:00
Sébastien Helleu
0debd47d3e
core: update ChangeLog
2023-04-25 19:07:14 +02:00
Sébastien Helleu
ea734b5924
doc/api: add variable "_chat_focused_line" in function hook_focus
2023-04-25 19:05:05 +02:00
Trygve Aaberge
e51ffc1a6e
core: add cursor key l to quote focused line
...
Fixes #1913
2023-04-25 00:11:30 +02:00
Trygve Aaberge
a401fbf217
core: add _chat_focused_line variable to get the focused line
...
This contains the single line that you focused on, like _chat_word
contains the word that you focused on. This will be equal to
_chat_line_message if the chat line only contains a single line, but if
the chat line has multiple lines, _chat_line_message will contain all of
them, but _chat_focused_line will only contain the single line that was
focused.
Fixes part of #1913
2023-04-25 00:11:26 +02:00
Sébastien Helleu
e00ec6710d
irc: add message 742 (mode cannot be set)
2023-04-24 21:44:34 +02:00
Sébastien Helleu
28bb33aa5a
irc: add message 415 (cannot send message to channel)
2023-04-24 21:43:57 +02:00
Sébastien Helleu
9f5e8efbe0
core: fix update of terminal title in some terminals like suckless terminal (stterm) ( closes #1882 )
2023-04-23 22:02:33 +02:00
Emir SARI
2d93f9d703
core: update Turkish translations (issue #1868 )
2023-04-23 16:53:28 +02:00
Sébastien Helleu
3d79e2c9d2
Revert "core: remove deprecated parameters from command /input"
...
This reverts commit 2b7f745369 .
Parameters removed are still used in scripts, and it's OK to keep them for a
while.
2023-04-23 09:53:50 +02:00
Nils Görs
da49adebc3
core: update German translations
2023-04-22 09:35:19 +02:00
Sébastien Helleu
3a9ac529d5
buflist: update example in /help buflist.look.sort
2023-04-22 08:06:33 +02:00
Sébastien Helleu
731c2d66bc
buflist: add example to sort on hotlist activity in /help buflist.look.sort
2023-04-21 21:15:45 +02:00
Sébastien Helleu
2c82a1a35f
core: update ChangeLog
2023-04-20 22:39:02 +02:00
Sébastien Helleu
078da85f5e
core: keep only first message line in hdata update of line_data when input_multiline is not set in buffer
2023-04-20 22:36:18 +02:00
Sébastien Helleu
5193c0aeea
core: do now allow buffer property "input_multiline" to be reset to 0, except if buffer has no lines
2023-04-20 22:36:18 +02:00
Trygve Aaberge
e5573bfb4d
core: still split on printf when input_multiline isn't set
...
If we have chat lines with multiple lines in buffers without
input_multiline set, there can be an issue if a trigger is run on that
line. If the trigger runs a command which includes the message, then the
command is split (since input_multiline isn't set), and if any of the
lines in the message starts with a command, that command is executed.
To prevent this, only avoid splitting on newlines in printf if
input_multiline is set, so only such buffers can have chat lines with
newline characters.
See https://github.com/weechat/weechat/pull/1909 for more details.
2023-04-19 16:47:44 +02:00
Trygve Aaberge
07fa6b12a6
core: don't split on newline characters in printf_date_tags
...
With support for rendering newline characters as new lines, we don't
need to split the message on newline characters anymore in
printf_date_tags. This allows you to print a line with multiple lines.
2023-04-19 16:47:44 +02:00
Trygve Aaberge
031bd45e36
core: render newline characters in chat line messages
...
If a chat line message contains a newline character (\n) it was
previously rendered as J with reverse video. This commit makes it
render as an actual newline instead, so messages with multiple lines
become supported.
The rendering is fixed in normal mode as well as bare mode both when
scrolled to the bottom and when scrolled up (which is different code
paths). Focus events has also been updated to support this (except for
_chat_line_y which returns -1 for all lines, but the docs says this
variable is only for buffers with free content).
Currently, the only way to include a \n in a chat line message is with
hdata_update because printf splits on \n and creates multiple separate
lines, but hopefully either printf can be changed to not split on \n, or
a new command which doesn't split can be added.
2023-04-19 16:47:44 +02:00
Sébastien Helleu
2b7f745369
core: remove deprecated parameters from command /input
...
Parameters removed:
- jump_smart
- jump_last_buffer
- jump_last_buffer_displayed
- jump_previously_visited_buffer
- jump_next_visited_buffer
- hotlist_clear
- hotlist_remove_buffer
- hotlist_restore_buffer
- hotlist_restore_all
- set_unread_current_buffer
- set_unread
- switch_active_buffer
- switch_active_buffer_previous
- zoom_merged_buffer
2023-04-19 16:44:42 +02:00
Sébastien Helleu
19baa79d64
core: convert deprecated commands bound to keys when upgrading weechat.conf to v2
2023-04-19 16:35:39 +02:00
Sébastien Helleu
389e719302
core: bump guile version to 3.0 in cygwin
2023-04-18 22:45:35 +02:00
Sébastien Helleu
ee7cd3de5c
doc/user: update links to release notes
2023-04-17 22:31:26 +02:00
Sébastien Helleu
b5e81f931b
doc: update header and remove links in ChangeLog and release notes
2023-04-16 22:05:45 +02:00
Sébastien Helleu
2eaaa19beb
core: simplify print of stable/devel version number in version.sh
2023-04-15 23:52:29 +02:00
Sébastien Helleu
1eb8e21d4b
core: hide error when git tag does not exist
2023-04-15 16:59:48 +02:00
Sébastien Helleu
412b9de263
core: add missing space before trailing backslash
2023-04-15 12:16:18 +02:00
Sébastien Helleu
c8780d2d7a
core: fix description of script bump_version.sh
2023-04-15 11:58:20 +02:00
Sébastien Helleu
a5f5008c77
core: add missing quotes around variables
2023-04-15 11:46:45 +02:00
Sébastien Helleu
bbc5c4948a
core: update ChangeLog
2023-04-15 11:15:02 +02:00
Sébastien Helleu
c391a49cc1
core: add quote around stable/devel versions
2023-04-15 11:12:56 +02:00
Sébastien Helleu
4090680ef7
core: add "stable-number" and "devel-number" in version.sh
...
This is the same value returned by the info "version_number" in a running
WeeChat.
2023-04-15 11:10:19 +02:00
Sébastien Helleu
72477b49d7
api: add optional argument with version in info "version_number"
2023-04-15 11:09:59 +02:00
Sébastien Helleu
15d5fce00a
doc/api: add more examples on function util_version_number
2023-04-15 11:00:00 +02:00
Sébastien Helleu
49ff42bef5
core: remove unnecessary condition in comparison of timeval structures
...
Ref: https://github.com/weechat/weechat-relay/pull/3
2023-04-14 13:06:18 +02:00
Sébastien Helleu
70bf3f8671
core: replace "SSL" by "TLS" in /help upgrade (issue #1903 )
2023-04-13 20:11:03 +02:00
Nils Görs
2085c470e6
core: update German translations
2023-04-13 11:02:09 +02:00
Sébastien Helleu
aa1d2a709d
core: update translations (issue #1903 )
2023-04-12 17:17:52 +02:00
Sébastien Helleu
fe1ab06924
irc: improve short description of server (issue #1903 )
2023-04-12 17:17:49 +02:00
Sébastien Helleu
6e17d39adf
irc: fix URL of doc on capability negotiation (issue #1903 )
2023-04-12 17:17:46 +02:00
Sébastien Helleu
e516a0714f
irc: add support of RFC 7194 (default port 6697 for TLS) (issue #1903 )
2023-04-12 17:17:43 +02:00
Sébastien Helleu
55a853eb76
core: add TLS changes in release notes (issue #1903 )
2023-04-12 17:17:41 +02:00
Sébastien Helleu
95b30f8da5
irc: connect with TLS and port 6697 by default (issue #1903 )
2023-04-12 17:17:38 +02:00
Sébastien Helleu
8eb096b3ef
relay: rename "ssl" options and protocol to "tls" (issue #1903 )
2023-04-12 17:17:34 +02:00
Sébastien Helleu
dec237b104
irc: rename "ssl" options to "tls" (issue #1903 )
2023-04-12 17:17:30 +02:00
Sébastien Helleu
23b870ec1d
core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls (issue #1903 )
2023-04-12 17:17:26 +02:00
Sébastien Helleu
ff2f94c12b
core: replace SSL by TLS in comments (issue #1903 )
2023-04-12 17:17:23 +02:00
Sébastien Helleu
9ccdc5aff6
irc: check that IRC URL starts with "irc" (issue #1903 )
2023-04-12 17:17:20 +02:00
Sébastien Helleu
62171c5974
irc: add more info in description of function irc_server_alloc_with_url (issue #1903 )
2023-04-12 17:17:13 +02:00
Sébastien Helleu
e5c1945931
irc: set gnutls_sess, tls_cert and tls_cert_key to NULL by default in server (issue #1903 )
2023-04-12 17:17:00 +02:00
Nils Görs
00c847ee56
core: update German translations
2023-04-12 10:03:24 +02:00
Sébastien Helleu
d58d4dd8fa
core: improve description of arguments in bump version script
2023-04-08 11:13:28 +02:00
Sébastien Helleu
49df360652
core: remove WEECHAT_DEVEL_FULL from version.sh
2023-04-08 11:08:33 +02:00
Sébastien Helleu
5f7ead023f
core: add way to read stable major/minor/patch version
2023-04-08 09:18:39 +02:00
Sébastien Helleu
7ced1821db
core: add contributor (issue #1904 )
2023-04-08 08:21:31 +02:00
Sébastien Helleu
6be7960e1c
core: update ChangeLog (issue #1904 , issue #1905 )
2023-04-08 08:19:50 +02:00
wfrsk
cd740fc18b
lua: fix crash with print when the value to print is not a string
2023-04-08 08:16:02 +02:00
Sébastien Helleu
127c8e0eb6
core: change default color of "mouse_status" item to lightgreen
2023-04-07 18:56:35 +02:00
Sébastien Helleu
ce1adf0fd7
core: add item "mouse_status" in default status bar
2023-04-07 18:54:51 +02:00
Sébastien Helleu
6247598d3f
core: fix comment in bump version script
2023-04-07 08:10:10 +02:00
Grady Martin
f4c8b9e29f
Update Japanese translations
...
This fixes a small typo.
2023-04-07 08:03:37 +02:00
Sébastien Helleu
41c1cc6e0b
doc: add BYPRODUCTS in doc-autogen target
...
This is needed for Ninja and the "clean" target now removes all auto-generated
files.
2023-04-05 23:29:17 +02:00
Sébastien Helleu
f1e7f861e9
core: fix pointer to hash and hash_temp in doc generator
2023-04-05 22:44:11 +02:00
Sébastien Helleu
0b20cb449a
tests: add tests on function irc_server_alloc_with_url
2023-04-05 21:17:03 +02:00
Sébastien Helleu
5c801f2741
irc: display a warning if command name in option irc.msgbuffer.* is not lower case
2023-04-05 21:04:54 +02:00
Sébastien Helleu
87216279ca
irc: display a warning if CTCP name in option irc.ctcp.* is not lower case
2023-04-05 20:56:48 +02:00
Sébastien Helleu
b6a59be317
irc: search options irc.ctcp.* with lower case ctcp string
2023-04-05 20:47:20 +02:00
Sébastien Helleu
e75c61d7aa
doc/user: remove Javascript from plugins compiled with CMake option ENABLE_SCRIPTS
...
The Javascript plugin is not built by default any more since v2.9 and must be
explicitly enabled with `-DENABLE_JAVASCRIPT=ON`.
2023-04-03 21:09:05 +02:00
Sébastien Helleu
924c543430
core: ensure tag/commit are not done upon startup, do not undo tag/commit in case of error
2023-04-03 20:06:46 +02:00
Sébastien Helleu
1c3b871204
irc: don't switch to buffer of joined channel if it was not manually joined nor present in server autojoin option
2023-04-03 20:00:32 +02:00
Sébastien Helleu
b8f40cfa99
core: add script release.sh
2023-04-02 17:51:33 +02:00
Sébastien Helleu
058c9f8b84
core: add script bump_version.sh
2023-04-02 14:01:21 +02:00
Sébastien Helleu
ff85d00e7f
irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ( closes #1898 )
2023-04-02 13:49:25 +02:00
Nils Görs
e15bd25f37
core: update German translations
2023-04-01 22:44:33 +02:00
Sébastien Helleu
4aabe8681f
core, plugins: set options to NULL by default, refactor config init functions
2023-04-01 20:56:11 +02:00
Sébastien Helleu
3e9524ee65
alias: rename all aliases to lower case on upgrade (issue #1872 )
2023-04-01 16:47:23 +02:00
Nils Görs
e23100c09b
core: update German translations
2023-03-31 23:19:34 +02:00
Sébastien Helleu
f330ff865c
ci: enable build of incomplete docs on macOS
2023-03-31 21:16:22 +02:00
Sébastien Helleu
6665cc866a
doc: add CMake option ENABLE_DOC_INCOMPLETE to force build of incomplete docs ( closes #1901 )
2023-03-31 21:08:56 +02:00
Sébastien Helleu
10b2fa3a61
irc: fix target buffer for commands 432/433 when the nickname looks like a channel
2023-03-31 19:54:26 +02:00
Sébastien Helleu
7558fe7c1b
build: add condition to enable gcc/g++ specific options
...
This fixes warnings with clang.
2023-03-31 19:09:12 +02:00
Sébastien Helleu
0f3f7c3b37
core: replace key meta2- by meta-[ in comments
2023-03-31 18:59:04 +02:00
Sébastien Helleu
0cf723ec1a
doc/faq: replace key meta2- by meta-[
2023-03-31 18:59:04 +02:00
Sébastien Helleu
1684f60207
core: fix key meta-[O (unfocus with xterm) ( closes #1900 )
2023-03-31 18:58:49 +02:00
Sébastien Helleu
613dc73fd4
core: remove keys meta-[I and meta-[G for pgup/pgdn (issue #1900 )
...
It seems no terminal return such codes any more for pgup/pgdn, and `meta-[I` is
conflicting with the xterm terminal "focus in" key code.
The keys are also removed from config when converting old keys, but only if
they are bound to the default command (`/window page_up` for `meta2-I` and
`/window page_down` for `meta2-G`).
2023-03-31 18:57:58 +02:00
Nils Görs
867536f8ce
core: update German translations
2023-03-31 11:29:48 +02:00
Sébastien Helleu
7e7b015aa1
core: update translations
2023-03-30 22:12:44 +02:00
Sébastien Helleu
672945a359
logger: add info "logger_log_file"
2023-03-30 22:04:33 +02:00
Sébastien Helleu
6a2ecc90b3
spell: check buffer pointer received in info "spell_dict"
2023-03-30 22:02:12 +02:00
Sébastien Helleu
35067512e9
core: update translations
2023-03-30 21:58:46 +02:00
Sébastien Helleu
7c6d490a4e
doc: update Ubuntu Bionic Debian patch to remove asciidoctor option
...
The option "--failure-level" has been added in Asciidoctor 1.5.7 and the
version in Ubuntu Bionic is 1.5.5.
2023-03-30 07:42:12 +02:00
Sébastien Helleu
a62f2dac58
ci: disable build of doc when NLS is disabled
2023-03-30 01:34:55 +02:00
Sébastien Helleu
c243e4add9
ci: disable build of doc on macOS
...
Since the PHP plugin is not built, the doc can not be built any more (all
plugins must be compiled to generate autogen files).
2023-03-30 01:34:55 +02:00
Sébastien Helleu
d24f6295d4
doc: remove unnecessary empty lines in autogen files
2023-03-30 01:34:55 +02:00
Sébastien Helleu
3eeef346b1
doc: update autogen files only if changed, add autogen dependencies on docs
2023-03-30 01:34:55 +02:00
Sébastien Helleu
6dbfb638c6
doc: convert docgen.py to C, remove autogen files from repository, add parameter --doc-gen
...
Changes:
- build of doc now requires weechat-headless, translations and all plugins
- convert docgen.py to C
- remove `autogen_*` files from repository
- add command line parameter `--doc-gen` in `weechat-headless` to build
autogen files
- build .mo files with directories like the installed ones
(eg: "<lang>/LC_MESSAGES/weechat.mo")
- remove javascript chapter from user's guide
2023-03-30 01:34:55 +02:00
Sébastien Helleu
4548b25b78
doc: make asciidoctor fail on any warning
2023-03-29 20:48:18 +02:00
Sébastien Helleu
974ac9ad5f
core: add separate function to get translated help for values of color options
2023-03-28 22:32:54 +02:00
Sébastien Helleu
7c5d484f59
core: check that infolist is not NULL in next/prev/reset_item_cursor functions
2023-03-28 22:07:11 +02:00
Sébastien Helleu
742871fd3e
doc: sort commands by plugins in auto-generated files
2023-03-27 22:31:02 +02:00
Sébastien Helleu
e816381777
core: remove extra separator in Serbian translation
2023-03-27 22:18:01 +02:00
Sébastien Helleu
77a30e09cb
core: add missing space in Polish translation
2023-03-27 22:05:28 +02:00
Sébastien Helleu
4b5987e37c
doc: update German auto-generated files
2023-03-27 14:23:11 +02:00
Nils Görs
debf79118f
core: update German translations
2023-03-27 13:06:12 +02:00
Sébastien Helleu
b894166d1b
core: update ChangeLog (issue #1504 )
2023-03-26 21:08:56 +02:00
Sébastien Helleu
181cd4f276
core: update translations (issue #1504 )
2023-03-26 21:07:17 +02:00
Trygve Aaberge
c63321bb7a
core: Add an option to start multiline input text on a new line
...
This does the same as the lead_linebreak option in multiline.pl. That
is, when the input contains more than one line, the first line will be
displayed beneath the previous items in the bar. This is practical
because all the lines in the input will be aligned.
Related to #1498
2023-03-26 21:02:19 +02:00
Sébastien Helleu
af493ac976
doc/user: add keys to move and delete in a single line and whole input (issue #1503 )
2023-03-26 20:31:07 +02:00
Sébastien Helleu
fe41da1506
core: update translations (issue #1503 )
2023-03-26 20:30:17 +02:00
Sébastien Helleu
9bb3acd2c7
core: update ChangeLog (issue #1503 )
2023-03-26 20:30:17 +02:00
Sébastien Helleu
ec671fe447
core: fix code style (issue #1503 )
2023-03-26 20:30:17 +02:00
Sébastien Helleu
a508640fa0
core: add keys shift-left and shift-right with same commands as left and right (issue #1503 )
2023-03-26 20:30:17 +02:00
Sébastien Helleu
e6b1905679
core: revert keys meta-r (delete line) and meta-R (delete input) (issue #1503 )
2023-03-26 20:30:12 +02:00
Trygve Aaberge
9ac30381fa
core: Implement commands for operating on a single input line
...
This changes the commands delete_beginning_of_line, delete_end_of_line,
delete_line, move_beginning_of_line and move_end_of_line to operate on
the current line instead of the whole input. The commands
delete_beginning_of_input, delete_end_of_input, delete_input,
move_beginning_of_input and move_end_of_input are added with the
previous implementations that the line commands had.
Additionally, the commands move_previous_line and move_next_line are
added which moves the cursor to the previous/next line and keeps the
horizontal position in the line.
The meta-r key is changed from delete_line to delete_input to keep the
behavior, and because you probably want to delete the whole input more
often than the line. The meta-R key is added for delete_line.
The home, end, ctrl-u and ctrl-k keys are kept to the same commands,
which means that they change behaviour. This is because having them
operate on the line is consistent with other applications (vim, zsh),
and I also think it's more practical.
These new bindings are added:
shift-home: /input move_beginning_of_input
shift-end: /input move_end_of_input
shift-up: /input move_previous_line
shift-down: /input move_next_line
meta-R: /input delete_line
meta-ctrl-u: /input delete_beginning_of_input
meta-ctrl-k: /input delete_end_of_input
Relates to #1498
2023-03-26 15:52:19 +02:00
Sébastien Helleu
20cea84917
doc: update German auto-generated file
2023-03-26 12:36:23 +02:00
Nils Görs
56d38184b4
core: update German translations
2023-03-26 11:24:59 +02:00
Sébastien Helleu
bfca5e3c44
core: update translations
2023-03-26 10:58:59 +02:00
Sébastien Helleu
fa057f663e
core: add missing source files to build translations
2023-03-26 10:58:35 +02:00
Sébastien Helleu
c03a432f7a
core: remove obsolete files used to build translations with autotools
2023-03-26 10:51:16 +02:00
Sébastien Helleu
e21144eb1f
tests: add tests on gui bar functions
2023-03-26 10:42:31 +02:00
Sébastien Helleu
5b33d1e21b
core: fix default value of bar options
...
The previous commit e385eec1d6 fixed default
value for bar added by plugins and option "items" in all bars.
This commit fixes the default value of all bar options.
2023-03-26 10:38:16 +02:00
Sébastien Helleu
cd119b9ee5
core: add packaging changes in release notes
2023-03-25 21:32:23 +01:00
Sébastien Helleu
fcbfa13bf3
core: update ChangeLog and release notes (issue #1502 )
2023-03-25 21:15:39 +01:00
Sébastien Helleu
2586b0326d
doc: update auto-generated files with options
2023-03-25 21:15:35 +01:00
Sébastien Helleu
eeb680783b
tests: add placeholder for function gui_key_paste_finish
2023-03-25 19:23:46 +01:00
Sébastien Helleu
b71b6a48a0
core: fix typo and code style
2023-03-25 18:59:06 +01:00
Trygve Aaberge
f86972513b
core: Include blank lines in paste line count
...
Since pastes are now inserted into the input instead of sent, and blank
lines are preserved in the input, they should now be counted too.
2023-03-25 18:53:12 +01:00
Trygve Aaberge
3e331d3772
core: Increase default value for paste_max_lines to 100
...
Now that pasting text doesn't cause it to be sent immediately, but
rather inserted in the input line, the paste confirmation isn't really
necessary anymore for small pastes. If you paste by mistake you can just
press ctrl-_ to undo it.
Large pastes may cause weechat to hang for a while, so keep the paste
confirmation for those.
If you don't use bracketed paste you would still want to keep it at 1,
because it's not detected as a paste otherwise, but as far as I know
basically all terminal emulators support bracketed paste, so I think
it's fine to disable the confirmation by default.
2023-03-25 18:53:12 +01:00
Trygve Aaberge
d15203dbf5
core: Remove option weechat.look.paste_auto_add_newline
...
This option existed so that you could edit the last line of a multiline
paste before it was sent. Now that pasting multiple lines don't cause
the lines to be sent immediately anymore, this option isn't useful
anymore since you can always edit pasted text before it's sent.
2023-03-25 18:53:12 +01:00
Trygve Aaberge
68040f210a
core: Always remove final newline when pasting
...
Since pasting doesn't send the line now, it's more practical to always
remove the final newline so you don't end up with an empty line at the
end of the input buffer.
Fixes a part of #1498
2023-03-25 18:53:12 +01:00
Trygve Aaberge
37decf3a7c
core: Replace newline/tabs after paste is accepted
...
Instead of replacing newline/tabs when paste is started, do it when the
paste is accepted instead. This makes a difference if you paste again
while the paste confirmation is active, where instead of running it
again for each paste, it will now be run for all the text at the end.
For now this doesn't make a practical difference, but the next commit
will remove the final newline when multiple lines are pasted too, which
we only want to do for the final paste.
2023-03-25 18:53:12 +01:00
Trygve Aaberge
99f6f9e454
core: When pasting, insert text in input instead of interpreting keys
...
This makes pasted text appear in the input bar, instead of each line
being sent. This allows you to edit the text before sending it, and it
makes multiline paste supported in buffers with input_multiline on.
It also replaces \r with \n in pasted text because most terminals (e.g.
xterm and urxvt) print lines separated by \r when pasting as if return
was pressed between each line, even though the copied text uses \n. The
text sent to the buffer should use \n, not \r, so we have to replace it.
Note that this only works when bracketed paste is enabled or the paste
confirmation as shown, because non-bracketed paste with no paste
confirmation is not detected as a paste.
Fixes a part of #1498
2023-03-25 18:53:12 +01:00
Trygve Aaberge
cfaf68ae61
core: Parse bracketed paste also when paste pending
...
When in paste pending mode, the bracketed paste escape sequence should
still be interpreted, so that if you paste while in paste pending the
same things as when pasting in normal mode still happens, i.e. the
escape sequence is removed, ctrl-y/n is not interpreted and newline/tabs
are replaced.
2023-03-25 18:53:12 +01:00
Sébastien Helleu
8fe4c84b72
core: fix uninitialized variable chunks2_count when key_name and key_name_alias are the same
2023-03-25 18:04:08 +01:00
Sébastien Helleu
94cbed2585
core: fix memory leak in function config_file_read_internal
...
This was caused by commit 66571a0b63 .
2023-03-25 17:56:07 +01:00
Sébastien Helleu
675e63948c
core: remove unnecessary assignment
2023-03-25 17:11:15 +01:00
Sébastien Helleu
1b99f861a3
core: remove commented code
2023-03-25 17:11:10 +01:00
Sébastien Helleu
2da5eaf81c
core: replace .bz2 by .xz in SRC_URI of cygport template
2023-03-25 11:22:28 +01:00
Sébastien Helleu
cf3ba52828
core: remove obsolete cpack config
...
This config was used to build binary package of WeeChat, which was never
released in this format.
2023-03-25 11:09:04 +01:00
Sébastien Helleu
2550153f26
core: remove build of .bz2 and .zst files in make dist
2023-03-25 11:02:22 +01:00
Sébastien Helleu
a2ddfdf5a6
core: fix gcc warning on snprintf
2023-03-25 10:00:54 +01:00
Sébastien Helleu
15f0f7e369
core: add option legacy in command /key
2023-03-24 23:07:40 +01:00
Sébastien Helleu
92b0bc9f10
core: remove RPM packaging
...
The weechat.spec was obsolete and openSUSE has its own here:
https://build.opensuse.org/package/view_file/server:irc/weechat/weechat.spec?expand=1
2023-03-23 22:30:12 +01:00
Sébastien Helleu
dc8f78163f
core: replace set -e by set -o errexit in shell scripts
2023-03-23 22:01:48 +01:00
Sébastien Helleu
29ac28f94a
core: add extra compiler options to check overflow of destination buffer and output truncation
2023-03-23 18:50:48 +01:00
Sébastien Helleu
952779a74c
core: remove autotools related files in .gitignore
2023-03-22 21:10:25 +01:00
Sébastien Helleu
98a599d079
core: move buffer functions and remove them from header file
2023-03-21 20:14:35 +01:00
Sébastien Helleu
f48f1c4700
core: remove unused function gui_buffer_is_scrolled
2023-03-21 20:01:12 +01:00
Sébastien Helleu
6edcc6ed41
core: remove unused function gui_buffer_search_by_layout_number
2023-03-21 19:58:53 +01:00
Sébastien Helleu
be64e8cddc
core: add relative move of read marker with /buffer set unread [+/-]N ( closes #1895 )
2023-03-20 20:38:24 +01:00
Sébastien Helleu
8475b216a4
doc: update German auto-generated file
2023-03-19 20:03:28 +01:00
Nils Görs
e2286a36b4
core: update German translations
2023-03-19 19:55:45 +01:00
Sébastien Helleu
dd54e26b4f
core: add function bar_new in release notes
2023-03-19 18:45:18 +01:00
Sébastien Helleu
40fa2605b1
core: update ChangeLog (issue #846 )
2023-03-19 18:25:05 +01:00
Sébastien Helleu
cee14f10d6
core: add option rename in command /bar
2023-03-19 18:24:39 +01:00
Sébastien Helleu
e4f181beb3
core: display an error with /bar add when the bar already exists
2023-03-19 17:42:12 +01:00
Sébastien Helleu
6bd49dd595
core: add value "name" in completion of /bar set <name>
2023-03-19 17:26:06 +01:00
Sébastien Helleu
b31666cc86
doc/api: fix typo
2023-03-19 17:24:07 +01:00
Sébastien Helleu
e385eec1d6
core: fix default value of options for bars added by plugins
...
When the bar name already exists, the function `bar_new` returns the pointer to
the bar (instead of NULL) and sets the default value for all options with the
values received.
2023-03-19 17:05:26 +01:00
Sébastien Helleu
3ebfe3e117
core: fix long lines in function gui_bar_use_temp_bars
2023-03-19 17:04:13 +01:00
Sébastien Helleu
b846df9e0e
core: allow any valid boolean value in command /bar set <name> separator xxx
2023-03-19 17:02:14 +01:00
Sébastien Helleu
8c4f02fe5a
core: fix typo on bar option name "separator"
2023-03-19 16:53:05 +01:00
Sébastien Helleu
c7090ae14a
core: use a fixed size buffer to create a bar option
2023-03-19 16:47:46 +01:00
Sébastien Helleu
111525792d
core: use a fixed size buffer to rename a bar
2023-03-19 16:47:46 +01:00
Sébastien Helleu
0f4ef874ca
core: do not call check callback when setting default value of option
2023-03-19 16:47:46 +01:00
Sekulum Forka
d47d9c5ed5
doc/man: call brackets correctly in the serbian translation
2023-03-19 10:08:03 +01:00
Sekulum Forka
16f2c21061
doc/man: fix grammatical mistakes in the serbian translation
2023-03-19 10:08:03 +01:00
Sébastien Helleu
ca7da2c961
core: run config hooks only when value or default value is actually changed in set/reset/unset functions
2023-03-19 09:59:33 +01:00
Sébastien Helleu
3e5d77fdff
core: optimize commands /reset and /unset with a mask
2023-03-19 08:30:32 +01:00
Sébastien Helleu
0d49ffd053
core: add command /reset to reset options to their default values
2023-03-19 08:02:10 +01:00
Sébastien Helleu
2e82c41c1a
core: don't translate the key context (default/search/cursor/mouse)
2023-03-19 07:17:44 +01:00
Sébastien Helleu
89701a3cc0
core: mention breaking changes in release notes
2023-03-18 16:09:47 +01:00
Sébastien Helleu
34e34d28db
core: bump version to 4.0.0-dev, follow "practical" semantic versioning
2023-03-18 15:59:23 +01:00
Sébastien Helleu
ff544f48fb
core: update ChangeLog and release notes ( closes #1238 )
2023-03-18 15:21:17 +01:00
Sébastien Helleu
5f475ab8cf
core: update translations
2023-03-18 15:20:31 +01:00
Sébastien Helleu
f7a6bd422a
doc: replace comma by underscore in name of option used in anchors
2023-03-18 15:19:08 +01:00
Sébastien Helleu
99ca276556
core: also display mouse codes with /debug key
2023-03-17 22:49:50 +01:00
Sébastien Helleu
64a553f91f
core: change order of modifiers in mouse keys
...
Now the modifiers for mouse keys are in the same order as other keys: `alt-`
then `ctrl-`.
2023-03-17 19:18:30 +01:00
Sébastien Helleu
3640d187b8
core: split gui-curses.h into multiple headers
2023-03-17 18:52:30 +01:00
Sébastien Helleu
313b40235a
core: fix search of commands with raw code and alias matching
...
When raw code and alias for a key are both matching, the raw code must always
have higher priority.
This commit fixes this behavior and gives priority to raw code.
2023-03-17 18:52:30 +01:00
Sébastien Helleu
fe6b69c41c
core: set insert_ok to 0 for backspace key
2023-03-17 18:52:30 +01:00
Sébastien Helleu
e060a0e7f2
core: remove "%s" from translated message for key debug
2023-03-17 18:52:30 +01:00
Sébastien Helleu
2b1da0d910
core: add note about "shift-" modifier in /help key
...
The modifier "shift-" can only be used with the key names, not with simple
chars.
2023-03-17 18:52:30 +01:00
Sébastien Helleu
c1db5c9549
core: refactor print of keys in debug mode
...
Changes:
- add function gui_key_debug_print_key
- change message "no key" by "no key binding"
- remove messages ""insert into input" / "ignored"
- add color for delimiters
2023-03-17 18:52:30 +01:00
Sébastien Helleu
a54663d60c
core: replace "\x01" by "^" and add color for delimiters in output of /debug key
2023-03-17 18:52:30 +01:00
Sébastien Helleu
d9e084869a
core: add modifiers, key names and combos in /help key
2023-03-17 18:52:30 +01:00
Sébastien Helleu
9afbf02a42
core: use order returned by gui_key_expand in gui_key_modifier_list
2023-03-17 18:52:30 +01:00
Sébastien Helleu
0c4a5528ac
core: display a warning when trying to bind a raw key code or invalid key (missing comma)
2023-03-17 18:52:30 +01:00
Sébastien Helleu
3b8f9d4547
core: check new keys manually added with /set
2023-03-17 18:52:30 +01:00
Sébastien Helleu
042968b016
core: remove use of "meta2-" in key name
...
The raw key code is kept as-is, so for example "meta2-A" becomes "meta-[A".
2023-03-17 18:52:30 +01:00
Sébastien Helleu
8a5a778293
core: remove mention to list of keys being displayed without arguments in /help key
...
Now when fset plugin is loaded, the keys are displayed in fset buffer.
In core commands like /set or /key, the fset plugin is not mentioned as WeeChat
can run without it.
2023-03-16 20:42:19 +01:00
Sébastien Helleu
46ce8d7e81
buflist: do not display keys added in default context on first load
...
Keys added in mouse context were already hidden, so it makes sense to not
display keys in default context as well.
These keys added by the default plugins are documented anyway.
2023-03-16 20:42:19 +01:00
Sébastien Helleu
bf51a081d9
core: display a specific error when trying to bind a key without area in mouse context
2023-03-16 20:42:19 +01:00
Sébastien Helleu
bb0c7b39fe
api: change also default value of new key options with function key_bind
2023-03-16 20:42:19 +01:00
Sébastien Helleu
a0c3fbbde9
core: display a warning if the config version read is newer than supported version
2023-03-16 20:42:19 +01:00
Sébastien Helleu
03e6d4563f
core: move keyboard debug mode from /key debug to /debug key
2023-03-16 20:42:19 +01:00
Sébastien Helleu
d94979fe3e
core: split alias list into two lists
2023-03-16 20:42:19 +01:00
Sébastien Helleu
7f1f6a6e84
tests: add extra test on function gui_key_legacy_to_alias
2023-03-16 20:42:19 +01:00
Sébastien Helleu
a686fa6407
api: change default value of existing key options with function key_bind
...
With this fix, fset buffer shows the key as modified only if the user actually
changed the command bound to the key.
2023-03-16 20:42:19 +01:00
Sébastien Helleu
55d9989b85
core: add function config_file_option_set_default
2023-03-16 20:42:19 +01:00
Sébastien Helleu
79f7c1cf83
fset: hook command /key
...
When command /key is called without arguments, and if fset plugin is loaded,
fset displays all key options (filter: `weechat.key*`).
2023-03-16 20:42:19 +01:00
Sébastien Helleu
ccc649d06c
core: create config options for all keys that can be managed with /set and /fset commands
2023-03-16 20:42:19 +01:00
Sébastien Helleu
c82df8f22e
core: fix safe list of keys
...
Add missing safe keys: "backspace" and "return".
Add missing unsafe keys: "comma", "space".
2023-03-16 20:42:19 +01:00
Sébastien Helleu
c647d540a7
core: remove obsolete function gui_key_legacy_expand
2023-03-16 20:42:19 +01:00
Sébastien Helleu
d1adec29f9
core: optimize search of key by reducing the number of splits into chunks
2023-03-16 20:42:19 +01:00
Sébastien Helleu
5b5c9afa29
core: add key alt-K (alt+shift+k) to grab raw key and its command
2023-03-16 20:42:19 +01:00
Sébastien Helleu
1f5c791c37
core: use new key name in command /key and configuration file
...
Legacy keys are automatically converted to new names when loading configuration
file `weechat.conf`.
Examples:
"ctrl-I" => "tab"
"meta2-1;3A" => "meta-up"
"meta2-Z" => "shift-tab"
"meta-wmeta-meta2-A" => "meta-w,meta-up"
"ctrl-Cb" => "ctrl-c,b"
2023-03-16 20:42:19 +01:00
Sébastien Helleu
5b5ccb236f
core: fix display of key with command /key bindctxt <context> <key>
2023-03-16 20:42:18 +01:00
Sébastien Helleu
66571a0b63
core: add configuration version, add API function config_set_version
2023-03-16 20:42:18 +01:00
Sébastien Helleu
7b8e5b36c0
core: simplify function config_file_read_internal
2023-03-16 20:42:18 +01:00
Sébastien Helleu
31bf962bba
core: display new key name using aliases in output of /key command
2023-03-16 20:42:18 +01:00
Sébastien Helleu
15587ac72f
core: fix function gui_key_legacy_to_alias with keys on areas
2023-03-16 20:42:18 +01:00
Sébastien Helleu
21910b7050
core: add function to expand raw key code to name with alias, use it in /key debug
2023-03-16 20:42:18 +01:00
Sébastien Helleu
0781f29726
core: add keyboard debug mode with command /key debug
2023-03-16 20:42:18 +01:00
Sébastien Helleu
5441c52d64
fset: remove scroll to top of fset buffer when options are added or removed ( closes #1892 )
2023-03-16 20:41:05 +01:00
Sébastien Helleu
b21bc63313
tests: add tests on functions weeurl_search_constant and weeurl_search_option
2023-03-12 08:02:47 +01:00
Sébastien Helleu
7ba9f9ac7b
core: revert case sensitive Curl constants and options (issue #1872 )
...
This is a partial revert of fca78ca823 .
2023-03-12 08:00:51 +01:00
Sébastien Helleu
e36eda5404
core: check that parameters are not NULL in URL functions
2023-03-12 07:58:00 +01:00
Sébastien Helleu
a5aa3304a4
doc/api: add hashtable methods in function string_eval_expression
2023-03-10 21:04:34 +01:00
Sébastien Helleu
7cda6cfd49
core: update translations (issue #1888 )
2023-03-10 20:52:53 +01:00
Sébastien Helleu
5f5535b466
core: simplify /help eval, move examples with the other examples (issue #1888 )
2023-03-10 20:52:28 +01:00
Sébastien Helleu
eb71880e18
core: update ChangeLog (issue #1888 )
2023-03-10 20:21:49 +01:00
Sébastien Helleu
f604cf19c7
core: rename variable open_paren to pos_open_paren
2023-03-10 20:19:24 +01:00
Andrew Potter
e3f588679c
core: allow /eval to get hashtable properties
2023-03-10 20:19:03 +01:00
Sébastien Helleu
dd65e91a75
ci: fix macOS CI
2023-02-22 21:53:25 +01:00
Sébastien Helleu
fb0248f557
core: fix crash in case of NULL message sent to function gui_chat_printf_y_date_tags ( closes #1883 )
2023-02-22 20:38:56 +01:00
Nils Görs
f6fdecb846
doc: update German documentation
2023-02-21 12:25:23 +01:00
Sébastien Helleu
188583256e
doc/user: make XDG directory fallback more clear in table
2023-02-16 21:39:02 +01:00
Sébastien Helleu
2cfecc2e2d
core: update ChangeLog (issue #603 )
2023-02-11 14:18:13 +01:00
Sébastien Helleu
3466c716ae
doc/user: move "Upgrade" chapter after "Running WeeChat"
2023-02-10 19:00:01 +01:00
Sébastien Helleu
46935b859c
core: update ChangeLog (issue #1881 )
2023-02-10 18:59:39 +01:00
Robin Jarry
9b9ec62a8e
core: allow /input move_next_word going to the end of line
...
When the input buffer contains non word characters at the end, /input
move_next_word will stop moving at the end of the last word. This is
a bit confusing and not in line with what readline does (think bash).
When there are no words left in the input buffer, make /input
move_next_word go to the end of line.
Signed-off-by: Robin Jarry <robin@jarry.cc >
2023-02-10 18:56:43 +01:00
rj1
69a3dd21dc
fix: various code comments
2023-02-04 11:50:44 +01:00
Sébastien Helleu
6d4471b6db
core: optimize search of key bindings in contexts default/search/cursor
2023-02-04 10:45:57 +01:00
Sébastien Helleu
587e2882ac
core: simplify function gui_key_cmp
2023-02-03 22:52:07 +01:00
Sébastien Helleu
1f073fe949
tests: add tests on function gui_key_cmp
2023-02-03 22:50:32 +01:00
Sébastien Helleu
68a5a71b55
core: remove extra spaces before comma
2023-02-02 22:01:46 +01:00
Sébastien Helleu
48a51c9f6e
doc: update auto-generated files
2023-02-01 20:32:00 +01:00
Ivan Pešić
314d9c0ce9
core/doc Update Serbian translations
...
Update messages and documentation translations.
2023-02-01 20:31:19 +01:00
Nils Görs
98917539b2
core: update German translations
2023-02-01 11:05:36 +01:00
Sébastien Helleu
30fa647700
irc: add command /rules ( closes #1864 )
2023-01-31 18:43:07 +01:00
Sébastien Helleu
9f5ca3b1a9
irc: add command /knock ( closes #7 )
2023-01-31 18:37:27 +01:00
Sébastien Helleu
4c0d2ab3b1
doc: update German auto-generated file
2023-01-31 07:55:36 +01:00
Nils Görs
f2e149e489
core: update German translations
2023-01-31 07:52:53 +01:00
Sébastien Helleu
7ad4f7b29c
core: update description of function hook_command_display_error_unknown
2023-01-30 23:27:25 +01:00
Sébastien Helleu
e78d96686c
core: inform that commands are case sensitive when another command with different case is found (issue #1877 )
2023-01-30 22:09:36 +01:00
Sébastien Helleu
4370f75ce6
core: improve prioritization of commands starting with same chars in similar commands
2023-01-30 21:51:32 +01:00
Sébastien Helleu
b02a10aa48
core: display similar command names when a command is unknown ( closes #1877 )
2023-01-30 21:44:38 +01:00
Sébastien Helleu
74154d972d
tests: fix comments (issue #1877 )
2023-01-30 21:44:09 +01:00
Sébastien Helleu
69a635412d
core: add function string_get_common_bytes_count (issue #1877 )
2023-01-30 21:44:03 +01:00
Sébastien Helleu
38ffac78f3
core: add function string_levenshtein (issue #1877 )
2023-01-30 21:43:58 +01:00
Sébastien Helleu
269b8fc66e
core: properly skip command char when it is a wide char in exec of hook_command_run
2023-01-29 21:20:18 +01:00
Mattia
2bcd9cb87b
doc/quickstart: translate to Italian ( closes #1874 )
2023-01-29 16:58:22 +01:00
Andrew Potter
4f0b6115a1
irc: add server option "registered_mode" ( closes #1625 )
...
Two new fields are added in IRC server structure:
- "authentication_method", possible values:
0: not authenticated
1: authenticated with SASL
2: authenticated with other method
- "sasl_mechanism_used", possible values: see enum t_irc_sasl_mechanism
in src/plugins/irc/irc-sasl.h
2023-01-29 16:50:57 +01:00
Sébastien Helleu
3909d77617
core: add bug #32213 in ChangeLog
2023-01-29 13:58:21 +01:00
Sébastien Helleu
e6eb068b2b
doc: update German auto-generated files
2023-01-29 13:44:30 +01:00
Nils Görs
958ddee8fd
core: update German translations
2023-01-29 13:20:28 +01:00
Sébastien Helleu
471ef214e7
core: add issue #398 in ChangeLog
2023-01-29 13:10:31 +01:00
Sébastien Helleu
fc504698ad
core: add ctrl keys as lower case in release notes (issue #1875 )
2023-01-29 13:01:58 +01:00
Sébastien Helleu
fd746a04d6
core: force ctrl keys to lower case when they are added ( closes #1875 )
2023-01-29 12:41:28 +01:00
Sébastien Helleu
be0c04f498
core: ignore incomplete ctrl/meta/meta2 codes in keys (issue #1875 )
2023-01-29 12:41:27 +01:00
Sébastien Helleu
c68c2aaa94
core: ensure internal_code is not NULL when adding a default key (issue #1875 )
2023-01-29 12:41:26 +01:00
Sébastien Helleu
3005658f38
core: compute first internal code and expanded name before removing key (issue #1875 )
2023-01-29 12:41:24 +01:00
Sébastien Helleu
a9289cbdc1
core: compute first internal code and expanded name before adding key (issue #1875 )
2023-01-29 12:41:23 +01:00
Sébastien Helleu
0d8a6679b3
core: use dynamic string in functions gui_key_get_internal_code and gui_key_get_expanded_name (issue #1875 )
2023-01-29 12:41:22 +01:00
Sébastien Helleu
fa6a9bb934
api: readjust string size in function string_dyn_free when string is not freed (issue #1875 )
...
This frees some allocated memory if size_alloc was greater than size in the
dynamic string.
2023-01-29 12:41:19 +01:00
Sébastien Helleu
48c1aebb83
tests: add tests on gui key functions (issue #1875 )
2023-01-29 12:41:11 +01:00
Sébastien Helleu
81f4b16180
core: update ChangeLog ( closes #1872 )
2023-01-28 15:19:46 +01:00
Sébastien Helleu
efe4aa29fc
core: update translations and auto-generated doc files (issue #1872 )
2023-01-28 15:19:41 +01:00
Sébastien Helleu
4c1a87ba60
core: add case sensitive identifiers in release notes (issue #1872 )
2023-01-28 15:14:32 +01:00
Sébastien Helleu
3318a7f3b8
alias: add option rename in command /alias (issue #1872 )
2023-01-28 15:14:31 +01:00
Sébastien Helleu
11ea0aecf4
core: make buffer name case sensitive in read of infolist "buffer" (issue #1872 )
2023-01-28 15:14:30 +01:00
Sébastien Helleu
b5350a3318
core: make proxy name case sensitive in read of infolist "proxy" (issue #1872 )
2023-01-28 15:14:29 +01:00
Sébastien Helleu
18d4e6a52c
relay: make relay compression case sensitive (issue #1872 )
2023-01-28 15:14:28 +01:00
Sébastien Helleu
3e9e1b51bf
core, plugins: replace calls to strcmp by string_strcmp when difference matters (issue #1872 )
2023-01-28 15:14:26 +01:00
Sébastien Helleu
fbeab26a35
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872 )
2023-01-28 15:14:24 +01:00
Sébastien Helleu
c07cf691ad
core, plugins: check that string parameters are not NULL in search functions (issue #1872 )
2023-01-28 15:14:22 +01:00
Sébastien Helleu
c9ac4fef4b
xfer: make xfer types and protocols case sensitive (issue #1872 )
2023-01-28 15:14:21 +01:00
Sébastien Helleu
f9a80e7d4d
trigger: make trigger names/options/types/return codes/post actions case sensitive (issue #1872 )
2023-01-28 15:14:20 +01:00
Sébastien Helleu
3319e6ff6e
script: make script names case sensitive (issue #1872 )
2023-01-28 15:14:19 +01:00
Sébastien Helleu
375c9f8b1e
api: make prefix argument case sensitive in prefix function (issue #1872 )
2023-01-28 15:14:17 +01:00
Sébastien Helleu
7b06463e84
irc: make IRC raw filters case sensitive (issue #1872 )
...
Except the IRC command name filter (`m:xxx`).
2023-01-28 15:14:16 +01:00
Sébastien Helleu
0704f382e0
irc: make IRC server names case sensitive (issue #1872 )
2023-01-28 15:14:15 +01:00
Sébastien Helleu
d7f08a45d7
core: make notify tags in line case sensitive (issue #1872 )
2023-01-28 15:14:14 +01:00
Sébastien Helleu
844b57a26d
core: make key contexts case sensitive (issue #1872 )
2023-01-28 15:14:12 +01:00
Sébastien Helleu
f11d598928
core: make hotlist priorities case sensitive (issue #1872 )
2023-01-28 15:14:11 +01:00
Sébastien Helleu
8744fdfaf3
core: make filter names case sensitive (issue #1872 )
2023-01-28 15:14:10 +01:00
Sébastien Helleu
7a8ce6c9ae
core: make color names and attributes case sensitive (issue #1872 )
2023-01-28 15:14:08 +01:00
Sébastien Helleu
73c3c03915
core, plugins: make input actions in buffers case sensitive (issue #1872 )
2023-01-28 15:14:07 +01:00
Sébastien Helleu
c724032a22
core: make function gui_buffer_match_list case sensitive (issue #1872 )
2023-01-28 15:14:06 +01:00
Sébastien Helleu
2ee65dd1ff
core: make buffer types and notify levels case sensitive (issue #1872 )
2023-01-28 15:14:05 +01:00
Sébastien Helleu
a3befc7aae
core: make proxy options and types case sensitive (issue #1872 )
2023-01-28 15:14:04 +01:00
Sébastien Helleu
54ed4c6a18
core: make weelist position case sensitive (issue #1872 )
2023-01-28 15:14:02 +01:00
Sébastien Helleu
411fe0b0ef
core: make hashtable types case sensitive (issue #1872 )
2023-01-28 15:14:01 +01:00
Sébastien Helleu
fca78ca823
core: make Curl constants and options case sensitive (issue #1872 )
2023-01-28 15:14:00 +01:00
Sébastien Helleu
bbbd08694b
core: make get/set object properties case sensitive (issue #1872 )
2023-01-28 15:13:58 +01:00
Sébastien Helleu
5434f4f969
core, plugins: make plugin names case sensitive (issue #1872 )
2023-01-28 15:13:57 +01:00
Sébastien Helleu
4b5897f110
core: make bar and bar items case sensitive (issue #1872 )
2023-01-28 15:13:55 +01:00
Sébastien Helleu
489c264202
core, plugins: make info, info_hashtable and infolist case sensitive (issue #1872 )
2023-01-28 15:13:54 +01:00
Sébastien Helleu
5bd97b9630
irc: make case insensitive comparison with a lower case string (issue #1872 )
...
This is faster because with case insensitive comparison, the chars are
converted to lower case anyway before being compared.
2023-01-28 15:13:52 +01:00
Sébastien Helleu
498ee539ea
core: make case insensitive comparison with a lower case string (issue #1872 )
...
This is faster because with case insensitive comparison, the chars are
converted to lower case anyway before being compared.
2023-01-28 15:13:51 +01:00
Sébastien Helleu
f0415c8ec3
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872 )
2023-01-28 15:13:48 +01:00
Sébastien Helleu
1de735b779
alias: make aliases case sensitive, convert default aliases to lower case (issue #1872 )
2023-01-28 15:13:47 +01:00
Sébastien Helleu
db177de204
core: make configuration files, sections and options case sensitive (issue #1872 )
2023-01-28 15:13:45 +01:00
Sébastien Helleu
72f4596fb2
core: add function config_file_get_configs_by_priority (issue #1872 )
2023-01-28 15:13:43 +01:00
Sébastien Helleu
d71c3b0f21
doc/api: add priority in function config_new (issue #1872 )
2023-01-28 15:13:40 +01:00
Sébastien Helleu
f72435d765
core: simplify code in config functions (issue #1872 )
2023-01-28 15:13:38 +01:00
Sébastien Helleu
0dd1d1be1c
core: sort configuration files by name, reload them by priority (issue #1872 )
2023-01-28 15:13:36 +01:00
Sébastien Helleu
202b4d82c0
plugins: set priority in calls to weechat_config_new (issue #1872 )
2023-01-28 15:13:34 +01:00
Sébastien Helleu
9174ec979b
core: set priority in calls to config_file_new (issue #1872 )
2023-01-28 15:13:32 +01:00
Sébastien Helleu
d274eb4be4
core: add priority in config file (issue #1872 )
...
Priority is now allowed in function config_file_new, parameter `name`, with the
same format as hooks: "priority|name" (for example: "2000|test").
If not specified, the default priority is 1000.
2023-01-28 15:13:29 +01:00
Sébastien Helleu
347c3f3214
core: move function hook_get_priority_and_name to wee-string.c (issue #1872 )
2023-01-28 15:13:18 +01:00
Sébastien Helleu
db8d2d43f0
doc: update German auto-generated file
2023-01-25 07:59:33 +01:00
Nils Görs
5a93b5ad15
core: update German translations
2023-01-25 07:50:28 +01:00
Sébastien Helleu
37e8599443
irc: add option join in command /autojoin
2023-01-24 20:58:17 +01:00
Sébastien Helleu
0e1d3618ee
doc: update auto-generated files with hdata
2023-01-24 20:55:28 +01:00
Sébastien Helleu
55d08a604f
irc: fix autojoin on server connection ( closes #1873 )
...
Now the autojoin is made only one time, until the server buffer is closed.
A new flag `autojoin_done` is added to know whether the autojoin has already
been done or not on the server. It is set to 1 on first autojoin, and reset to
0 only if the server buffer is closed.
The flag `reconnect_join` is removed, because it is now obsolete.
2023-01-23 19:10:13 +01:00
Nils Görs
e0cdfb1cef
core: update German translations
2023-01-16 08:53:26 +01:00
Sébastien Helleu
cfa2239db5
irc: update message with number of nicks when joining a channel
...
Changed:
- "N voices" to "N voiced"
- "N normals" to "N regular"
2023-01-15 21:12:32 +01:00
Sébastien Helleu
6abd989dd7
debian: remove remaining workarounds for autotools build
2023-01-15 17:10:20 +01:00
Sébastien Helleu
51d0a6f402
tests: add tests on string comparison functions
2023-01-14 21:44:19 +01:00
Sébastien Helleu
fdb793e410
ci: fix macOS CI (temporary fix)
...
Unlink Python binaries so that the install of packages via brew is a success.
See: https://github.com/actions/setup-python/issues/577
2023-01-14 21:16:18 +01:00
Sébastien Helleu
7668e7ea55
fset: fix typo in French translation of /help fset.look.condition_catch_set
2023-01-14 20:56:06 +01:00
Sébastien Helleu
87d71b9677
core: remove useless continue statement in loop
2023-01-12 21:33:57 +01:00
Sébastien Helleu
049c6eb6a8
core: display error in command if allocation of arraylist fails
2023-01-12 20:57:47 +01:00
Sébastien Helleu
0d622df87a
core: fix display glitch in command errors when a wide char is set in option weechat.look.command_chars ( closes #1871 )
2023-01-12 20:28:29 +01:00
Sébastien Helleu
1a15171912
ci: fix typo
2023-01-10 08:18:49 +01:00
Sébastien Helleu
711f71a1bc
ci: fix run of code coverage
2023-01-10 08:01:22 +01:00
Sébastien Helleu
f59f39abd4
python: remove unneded call to deprecated function PySys_SetArgv
...
This function is deprecated since Python 3.11.
2023-01-08 20:26:57 +01:00
Sébastien Helleu
9b47832a01
core: do not allocate strings in dir_search_full_lib_name_ext, check return code of snprintf
...
This removes three compiler warnings.
2023-01-08 18:24:28 +01:00
Sébastien Helleu
0bde2aa0f3
irc: check return code of snprintf
...
This removes two compiler warnings.
2023-01-08 18:13:05 +01:00
Sébastien Helleu
f305eed01f
typing: fix crash when pointer buffer is not received in callback for signal "input_text_changed" ( closes #1869 )
2023-01-08 17:38:37 +01:00
Sébastien Helleu
43d3a97869
debian: restore target override_dh_auto_configure (packaging of stable version)
2023-01-08 15:18:19 +01:00
Sébastien Helleu
f67b7ad113
debian: restore target override_dh_auto_configure
2023-01-08 15:16:52 +01:00
Sébastien Helleu
736bc89d4e
core: update ChangeLog and release notes ( closes #1860 )
2023-01-08 14:43:17 +01:00
Sébastien Helleu
754ab33946
core: remove build with autotools
...
CMake is now the only way to build WeeChat.
2023-01-08 14:19:41 +01:00
Sébastien Helleu
18360feb32
ruby: remove warnings on unused parameters
...
These warnings may be enabled again in future when Ruby itself will be fixed.
2023-01-08 14:04:10 +01:00
Sébastien Helleu
fe7c0019a7
php: remove warnings on variables "argc" and "ret_i" that might be clobbered by longjmp or vfork
2023-01-08 14:04:05 +01:00
Sébastien Helleu
e101d5d8a4
Version 3.9-dev
2023-01-08 10:35:38 +01:00
Sébastien Helleu
b614a5c5db
Version 3.8
2023-01-08 10:07:07 +01:00
Sébastien Helleu
35129a1cae
core: add note about case insensitive comparison improved in release notes
2023-01-08 10:01:11 +01:00
Sébastien Helleu
2f6b462c3c
core: update entries related to CI in ChangeLog
2023-01-07 23:17:56 +01:00
Sébastien Helleu
9202213274
ci: remove use of repository ppa:ondrej/php
...
Now the CI uses the standard PHP version (8.1) from Ubuntu 22.04.
2023-01-07 23:17:29 +01:00
Sébastien Helleu
822a94c184
php: add proper detection of PHP 8.2 in all cases
2023-01-07 22:05:37 +01:00
Sébastien Helleu
e0f096abe6
debian: add symbolic link weechat_raspbian_buster.patch pointing to Debian Buster patch
2023-01-06 13:12:59 +01:00
Sébastien Helleu
bff143dcf4
core: add CMake test called "notests" when tests are not compiled
...
Now the command `make test` executes properly and returns 0 when test are not
compiled.
2023-01-06 07:53:39 +01:00
Sébastien Helleu
e660233325
Revert "core: add a fake target "test" so that make test successes when tests are not compiled"
...
This reverts commit 129860fd52 .
2023-01-06 07:11:35 +01:00
Sébastien Helleu
129860fd52
core: add a fake target "test" so that make test successes when tests are not compiled
2023-01-05 21:26:55 +01:00
Sébastien Helleu
3c65bc6831
core: rename script build-test.sh to build_test.sh
2023-01-05 08:05:04 +01:00
Sébastien Helleu
db81c07e1f
core: rename script build-debian.sh to build_debian.sh
2023-01-05 08:03:12 +01:00
Sébastien Helleu
30ad9ca62d
core: rename script git-version.sh to set_git_version.sh
2023-01-05 08:01:48 +01:00
Sébastien Helleu
c7f5cd462f
core: add message after checking Curl symbols: "all good" or number of errors
2023-01-05 07:48:08 +01:00
Sébastien Helleu
bcba2d4d7c
core: add example with Curl repository cloned locally
2023-01-05 07:43:01 +01:00
Sébastien Helleu
e3a69e92e5
core: install flake8 in CI
2023-01-04 22:49:36 +01:00
Sébastien Helleu
f43efe5a65
core: add script check_scripts.sh
...
This script is now used in CI to check all shell scripts (*.sh) and Python
scripts (*.py) that are in git repository.
Tools used:
- shell scripts: shellcheck
- Python scripts: flake8 + pylint + bandit
2023-01-04 22:45:00 +01:00
Sébastien Helleu
8da3884afc
core: add script check_curl_symbols.py
...
This script is used to check Curl symbols defined in WeeChat vs exposed Curl
symbols.
Usage:
curl https://raw.githubusercontent.com/curl/curl/master/docs/libcurl/symbols-in-versions | ./tools/check_curl_symbols.py
2023-01-04 22:44:14 +01:00
Sébastien Helleu
3778ef0636
core: fix Curl version in comments
2023-01-04 22:23:33 +01:00
Sébastien Helleu
c52d630f82
core: remove useless "exit 0"
...
This fixes the following shellcheck error:
SC2317 (info): Command appears to be unreachable. Check usage (or ignore if
invoked indirectly).
2023-01-04 22:23:33 +01:00
Sébastien Helleu
356028ee87
core: double quote $JOBS
...
This fixes the following shellcheck error:
SC2086 (info): Double quote to prevent globbing and word splitting.
2023-01-04 22:23:33 +01:00
Sébastien Helleu
9dd85507d0
core: don't use eval to run commands in scripts
...
This fixes the following shellcheck error:
SC2294 (warning): eval negates the benefit of arrays. Drop eval to preserve
whitespace/symbols (or eval as string).
2023-01-04 22:20:51 +01:00
Sébastien Helleu
c6df2e7b8e
tests: fix long lines in scripting API tests
2023-01-04 21:13:25 +01:00
Sébastien Helleu
e6857871f0
tests: ignore module level import not at top of file (flake8 E402)
2023-01-04 21:12:53 +01:00
Sébastien Helleu
d1f2d54a1e
tests: mark methods is_bool and is_number as static
2023-01-04 21:11:41 +01:00
Sébastien Helleu
0ce0fa9f1f
api: add Curl options for versions 7.64.0 to 7.87.0
2023-01-03 23:21:44 +01:00
Sébastien Helleu
7526776f4e
plugins: change priority of scripting plugins
...
Use a step of 10 between each scripting plugin priority.
2023-01-03 20:20:21 +01:00
Sébastien Helleu
958f39cb95
core: fix crash or infinite loop in /allbuf command
...
A crash could occur if the command closes buffers.
An infinite loop could occur if the command creates new buffers.
2023-01-03 17:02:38 +01:00
Sébastien Helleu
189eb5dc40
core: add variable list_size to prevent computing arraylist size in each iteration
2023-01-03 17:01:52 +01:00
Sébastien Helleu
9ee0955d6b
irc: properly rename private buffer on notice messages
2023-01-03 01:06:51 +01:00
Sébastien Helleu
99988bdee7
Version 3.8-rc1
2023-01-02 14:27:21 +01:00
Sébastien Helleu
1daf145830
core: fix line wrapping in Polish translations
2023-01-02 14:20:44 +01:00
Sébastien Helleu
7baef6396d
irc: properly rename private buffer on nick changes or private message when new nick is the same with different case
2023-01-02 14:17:20 +01:00
Sébastien Helleu
c739026c87
irc: replace "private window" by "private buffer" in comments
2023-01-02 13:50:58 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
1fb6d52984
tests: add tests on gui input functions
2023-01-01 14:41:06 +01:00
Sébastien Helleu
727c465911
core: check that buffer is not NULL in function gui_input_clipboard_copy
2023-01-01 14:39:38 +01:00
Sébastien Helleu
73bac5491b
core: move function gui_input_move_to_buffer to gui-buffer.c
2022-12-31 10:40:00 +01:00
Sébastien Helleu
05839983d4
core: fix color when the delimiter is not followed by a background color ( closes #1867 )
2022-12-30 21:50:18 +01:00
Sébastien Helleu
6c59b0830c
doc: update Polish auto-generated files
2022-12-30 16:30:20 +01:00
Krzysztof Korościk
9f5a739428
core: updated Polish translation
2022-12-30 14:12:43 +01:00
Sébastien Helleu
81260ec854
doc: update German auto-generated file
2022-12-29 19:30:58 +01:00
Nils Görs
d8cc91993f
core: update German translations
2022-12-29 12:51:12 +01:00
Sébastien Helleu
d878d2023a
core: fix French translation of "read marker"
2022-12-29 12:05:21 +01:00
Sébastien Helleu
fce2fcba4f
core: add option weechat.look.chat_space_right (issue #1862 )
2022-12-29 12:00:28 +01:00
Krzysztof Korościk
45fdcc2eb4
doc: updated polish translation
2022-12-28 17:44:46 +01:00
Sébastien Helleu
914f9e756b
doc: update German auto-generated file
2022-12-28 10:27:44 +01:00
Nils Görs
7d94fba9ac
core: update German translations
2022-12-28 10:25:31 +01:00
Sébastien Helleu
e58b57fe4c
doc: update German auto-generated files
2022-12-26 23:43:28 +01:00
Nils Görs
0e6058f8cd
core: update German translations
2022-12-26 13:41:24 +01:00
Nils Görs
98bc80924c
core: update German translations
2022-12-26 13:32:56 +01:00
Sébastien Helleu
45638dca23
core: allow value "0" in buffer property "unread" to remove read marker from buffer
2022-12-26 01:27:45 +01:00
Sébastien Helleu
56055de12e
doc/api: fix formatting of return value in char/string comparison functions
2022-12-26 00:55:30 +01:00
Sébastien Helleu
5a27805cf3
core: reorder entries in ChangeLog
2022-12-25 23:05:22 +01:00
Dawid Dziurla
1639e60651
changelog: add entry about Ruby 3.2 detection
2022-12-25 23:03:24 +01:00
Dawid Dziurla
824812c7c0
ruby: add detection of Ruby 3.2
2022-12-25 23:03:24 +01:00
Sébastien Helleu
41fd26fe79
core: move /input buffer switch/zoom actions to command /buffer
...
Actions moved:
* `/input switch_active_buffer` -> `/buffer switch`
* `/input switch_active_buffer_previous` -> `/buffer switch -previous`
* `/input zoom_merged_buffer` -> `/buffer zoom`
2022-12-25 22:47:18 +01:00
Sébastien Helleu
0c29d4c5b6
core: move /input set_unread actions to commands /allbuf and /buffer set
...
Actions moved:
* `/input set_unread` -> `/allbuf /buffer set unread`
* `/input set_unread_current_buffer` -> `/buffer set unread`
2022-12-25 21:44:27 +01:00
Sébastien Helleu
2c238e08ff
core: add command /allbuf
2022-12-25 21:23:14 +01:00
Sébastien Helleu
2ad6f2f3d5
api: do not check hotlist add conditions when adding buffer in hotlist with function buffer_set
2022-12-25 20:35:10 +01:00
Sébastien Helleu
a9094fd2fa
core: add option add in command /hotlist
2022-12-25 19:40:57 +01:00
Sébastien Helleu
b3e4a91760
core: fix typo in comment
2022-12-25 19:07:39 +01:00
Sébastien Helleu
babe1e7a42
core: move /input hotlist actions to new command /hotlist
...
Actions moved to command `/hotlist`:
* `/input hotlist_clear` -> `/hotlist clear`
* `/input hotlist_remove_buffer` -> `/hotlist remove`
* `/input hotlist_restore_buffer` -> `/hotlist restore`
* `/input hotlist_restore_all` -> `/hotlist restore -all`
2022-12-25 18:50:57 +01:00
Sébastien Helleu
574a4c8834
core: add function gui_buffer_jump_last_visible_number
2022-12-25 17:57:59 +01:00
Sébastien Helleu
c9796a3141
core: move /input jump actions to command /buffer jump
...
Actions moved to command `/buffer jump`:
* `/input jump_smart` -> `/buffer jump smart`
* `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited`
* `/input jump_next_visited_buffer` -> `/buffer jump next_visited`
* `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
2022-12-25 17:00:37 +01:00
Sébastien Helleu
9bd6cbf4bd
core: fix style in ChangeLog and release notes
2022-12-25 16:53:30 +01:00
Sébastien Helleu
445b522498
core: fix typo in comment
2022-12-25 15:06:03 +01:00
Sébastien Helleu
f5135277af
core: remove useless conditions
2022-12-24 19:40:53 +01:00
Sébastien Helleu
21f3575016
api: add functions string_strcmp and string_strncmp
2022-12-24 18:29:35 +01:00
Sébastien Helleu
0dd1d4133b
doc/api: mention "UTF-8" in char/string comparison functions
2022-12-24 17:52:31 +01:00
Sébastien Helleu
a67556907d
api: rename char comparison functions "utf8_char*" to "string_char*"
2022-12-24 17:33:22 +01:00
Sébastien Helleu
083032972d
api: return arithmetic difference between chars in string comparison functions
...
Return code is changed for the following functions:
- string_strcasecmp
- string_strcasecmp_range
- string_strncasecmp
- string_strncasecmp_range
- string_strcmp_ignore_chars
- utf8_charcmp
- utf8_charcasecmp
- utf8_charcasecmp_range
2022-12-24 16:25:20 +01:00
Sébastien Helleu
5fc656a1b8
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
2022-12-23 23:20:29 +01:00
Sébastien Helleu
91149f0acc
core: fix typo in French translation of /help input
2022-12-22 20:56:50 +01:00
Sébastien Helleu
68b510517e
core: improve case convert and insensitive char comparisons ( closes #258 )
...
All lowercase letters are now properly converted to uppercase letters (and vice
versa), via functions `towupper` and `towlower`.
Functions `string_tolower`, `string_toupper` and `utf8_charcasecmp` have been
optimized to be faster when there are ASCII chars (< 128); functions are about
25-40% faster with mixed chars (both ASCII and multi-bytes).
Function `utf8_wide_char` has been removed, `utf8_char_int` can be used
instead.
2022-12-21 20:49:09 +01:00
Sébastien Helleu
95286c1eb3
core: remove unneeded casts
2022-12-19 13:01:33 +01:00
Sébastien Helleu
267313304e
irc: fix calls to weechat_string_toupper
2022-12-19 11:18:59 +01:00
Sébastien Helleu
33b6adc3d3
core: fix call to string_toupper
2022-12-19 11:18:49 +01:00
Sébastien Helleu
56436e57fd
spell: return directly output of string_dyn_free without temporary variable
2022-12-19 07:07:12 +01:00
Sébastien Helleu
5df4126c75
irc: return directly output of string_dyn_free without temporary variable
2022-12-19 07:06:01 +01:00
Sébastien Helleu
42113ebc0f
core: return directly output of string_dyn_free without temporary variable
2022-12-19 07:04:33 +01:00
Sébastien Helleu
40339b288a
api: return newly allocated string in functions string_tolower and string_toupper
2022-12-18 14:28:58 +01:00
Sébastien Helleu
eb6cc0bc2a
core: return number of bytes for UTF-8 char in function utf8_int_string
2022-12-18 14:13:14 +01:00
Sébastien Helleu
6aedddd351
tests: add tests on function gui_input_delete_next_word
2022-12-18 14:13:14 +01:00
Sébastien Helleu
9b917ccace
tests: add tests on function gui_input_delete_range
2022-12-18 14:13:14 +01:00
Sébastien Helleu
99c453ee23
tests: add tests on gui delete previous/next char functions
2022-12-18 14:13:14 +01:00
Sébastien Helleu
d2f447dafc
tests: add extra tests on function gui_input_set_pos
2022-12-18 14:13:14 +01:00
Sébastien Helleu
3ef8241444
tests: add tests on gui input completion functions
2022-12-18 14:13:14 +01:00
Sébastien Helleu
dd9ae79204
core: remove unused argument "pos" from function gui_input_insert_string, add tests on function
2022-12-18 14:13:14 +01:00
Sébastien Helleu
f03384d124
core: simplify gui input functions by returning immediately if condition not met
2022-12-17 22:22:15 +01:00
Sébastien Helleu
fb31cf663e
irc: do not join channels in server autojoin option after reconnection to the server ( closes #560 , bug #21529 )
2022-12-17 12:55:39 +01:00
Sébastien Helleu
122a0f8097
doc: update German auto-generated file
2022-12-14 23:44:41 +01:00
Nils Görs
32496d1705
core: update German translations
2022-12-14 22:38:45 +01:00
Trygve Aaberge
dc8a35796a
doc/api: Improve python example for config_new_section
...
This updates the Python examples to include all the possible return
values for the callbacks in config_new_section, like it is done in the C
example. It also aligns the order of the values with the C example.
2022-12-11 15:33:11 +01:00
Trygve Aaberge
abdabb3ae4
doc/api: Fix return values for callback_read in config_new_section
...
These return values were wrong in the description and C example. As can
be seen on lines 2835 and 2873-2903 of src/core/wee-config-file.c the
callback_read function should return the same as the function
config_file_option_set plus the value
WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND (which is also the same as
the possible return values of config_file_option_set_with_string).
The Python example was already correct and the C example was already
correct in the other languages apart from English.
These errors were introduced in commit 02e2b21d3 and commit 5210ff1ae .
2022-12-11 15:33:11 +01:00
Sébastien Helleu
a1b6d9622f
core: add contributor (issue #1859 )
2022-12-11 15:25:13 +01:00
Sébastien Helleu
20b061a89a
core: update ChangeLog (issue #1859 )
2022-12-11 15:17:38 +01:00
Ryan Qian
1316f3eb6d
cmake: add support of compiling with enchant-2 for the Spell plugin
2022-12-11 15:16:23 +01:00
Sébastien Helleu
a0e5e2a375
core: update ChangeLog (issue #1843 )
2022-12-11 15:15:50 +01:00
Trygve Aaberge
ebc63d1b83
scripts: Send null values to config section callbacks
...
The callback_read and callback_create_option functions in the scripting
APIs always get the value as a string, never as null. This means that if
the value is null, there is no way for the script to distinguish this
from an empty string for string options. This makes it impossible to
properly make options with fallback values, like the irc server and
server_default options, as far as I can see.
All the scripting languages except Tcl use that language's equivalent
for null. For JavaScript which has both null and undefined, null is
used. For Tcl, the magic null string defined in commit 197a7a01e is used
and the documentation is updated to describe that.
I tested this with these scripts:
https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447
You can load all of those scripts and see the result with this command
(assuming you have the scripts in the current directory):
weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)"
2022-12-11 15:13:31 +01:00
Sébastien Helleu
1bfc8b9cf8
trigger: fix variables sent to focus callback ( closes #1858 )
...
This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098 .
2022-12-10 22:30:24 +01:00
Sébastien Helleu
18c9ade580
core: add whole string information in /debug unicode
2022-12-10 17:32:09 +01:00
Sébastien Helleu
5b9b1e175b
core: add color attributes "blink" and "dim" (half bright) ( closes #1855 )
2022-12-10 16:37:03 +01:00
Sébastien Helleu
9b93919b06
core: update ChangeLog ( closes #1659 , closes #1669 , closes #1770 )
2022-12-10 16:20:23 +01:00
Sébastien Helleu
7313859bdf
core: update translations
2022-12-10 16:12:23 +01:00
Sébastien Helleu
ef842c5e62
core: fix function string_cut when there are non printable chars in suffix
2022-12-10 16:05:14 +01:00
Sébastien Helleu
f1cfd6f73f
core: do not display non printable chars, fix function utf8_char_size_screen
...
Now the function utf8_char_size_screen can return -1 when the char is not
printable.
It has a specific behavior for some chars:
- U+0009: value of option weechat.look.tab_width
- U+0001 to U+001F (except U+0009): 1
- U+00AD (soft hyphen): -1
- U+200B (zero width space): -1
2022-12-10 16:05:14 +01:00
Sébastien Helleu
d18f68e497
core: display chars < 32 with a letter/symbol and reverse video attribute in chat
2022-12-10 16:05:14 +01:00
Sébastien Helleu
6ac730cd0b
core: toggle reverse video attribute in bars for chars < 32 only if not already enabled
2022-12-10 16:05:14 +01:00
Sébastien Helleu
f63dba67f2
core: expand tabulations as spaces in bars
2022-12-10 16:05:14 +01:00
Sébastien Helleu
855d80702e
core: replace call to memcpy by utf8_strncpy
2022-12-10 16:05:14 +01:00
Sébastien Helleu
71ae8f1907
api: add function utf8_strncpy
2022-12-10 16:05:14 +01:00
Sébastien Helleu
e5cbbd781d
core: optimize and fix function utf8_strlen_screen with non printable chars
...
When there non printable chars, the return of the function was 1.
For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1.
In addition the function has been optimized to not use the `mbstowcs` function
which is slow; result is up to 15% faster.
2022-12-10 16:05:14 +01:00
Sébastien Helleu
0e6677fbcb
core: add result of utf8_char_size_screen in /debug unicode
2022-12-10 16:05:14 +01:00
Sébastien Helleu
6cfc01aa53
doc: update Serbian auto-generated files
2022-12-05 21:00:48 +01:00
Ivan Pešić
c6f5c3feaa
Update Serbian translation
...
Documentation and messages translation update
2022-12-05 21:00:00 +01:00
Sébastien Helleu
55569c182a
core: display hex codepoint before integer codepoint in /debug unicode
2022-12-03 10:15:18 +01:00
Sébastien Helleu
f7f13352d7
core: remove useless call to mbstowcs in function debug_unicode_char
2022-12-03 10:14:30 +01:00
Sébastien Helleu
bbd0f5d26b
tests: define constants with UTF-8 strings, add tests on functions returning size on screen
2022-11-27 12:29:36 +01:00
Sébastien Helleu
e08fcdd04c
doc: update German auto-generated file
2022-11-22 18:41:42 +01:00
Nils Görs
894b5e21ed
core: update German translations
2022-11-22 10:08:50 +01:00
Sébastien Helleu
baab9cc7c5
core: add option unicode in command /debug
2022-11-21 20:45:41 +01:00
Sébastien Helleu
a8639969c5
core: reorder sub-commands in /debug command callback
2022-11-20 13:55:21 +01:00
Sébastien Helleu
8d40273111
core: fix typo in comment
2022-11-20 09:33:40 +01:00
Sébastien Helleu
b636f55b8b
trigger: properly initialize variable "value" to NULL
2022-11-19 20:29:02 +01:00
Sébastien Helleu
11a5e0a627
ci: install guile-3.0-dev instead of guile-2.2-dev
2022-11-19 20:27:57 +01:00
Sébastien Helleu
ea9c3b2218
debian: change dependency guile-2.2-dev to guile-3.0-dev
2022-11-19 19:05:25 +01:00
Sébastien Helleu
bab73cfaa5
core: add identifier in buffer lines ( closes #901 )
...
For buffers with formatted content, the "id" starts to 0 on each buffer and is
incremented on each new line displayed (it is reset to 0 if reaching INT_MAX).
For buffers with free content, the "id" is set to the same value as "y" (ie the
line number, starting to 0).
2022-11-11 09:42:20 +01:00
Sébastien Helleu
8c44dc53eb
doc/api: add missing note after list of signals
2022-11-09 08:15:30 +01:00
Sébastien Helleu
70998a53de
doc/user: add missing supported format for trigger regex
2022-11-09 08:12:54 +01:00
Sébastien Helleu
6962d2ccd5
doc: update German auto-generated file
2022-11-08 20:36:33 +01:00
Sébastien Helleu
24665ae878
core: add signals "buffer_user_{input|closing}_xxx" for buffers created with /buffer add ( closes #1848 )
2022-11-08 20:34:04 +01:00
Nils Görs
2e4a033f0d
doc: update German documentation
2022-11-07 13:21:12 +01:00
Nils Görs
f95eb08201
core: update German translations
2022-11-07 13:02:46 +01:00
Sébastien Helleu
55b5549054
trigger: display failing regex in trigger creation error
2022-11-06 09:14:18 +01:00
Sébastien Helleu
f18b96bb59
core: update translations
2022-11-06 09:14:18 +01:00
Sébastien Helleu
b2605902db
trigger: use explicit command "s" in regex of default triggers
2022-11-06 09:14:18 +01:00
Sébastien Helleu
39561b9146
core: add release notes about new trigger regex format
2022-11-06 09:14:18 +01:00
Sébastien Helleu
7555993bbc
trigger: add regex command "y" to translate chars, set default regex command to "s" (regex replace) ( closes #1510 )
2022-11-06 09:14:14 +01:00
Sébastien Helleu
3b674a5e16
tests: add another test on function string_translate_chars
2022-11-05 22:34:39 +01:00
Sébastien Helleu
196a051141
core: add range of chars in evaluation of expressions with chars:xxx
2022-11-05 22:34:38 +01:00
Sébastien Helleu
bc2fb071e2
api: add function string_translate_chars
2022-11-05 22:34:38 +01:00
Trygve Aaberge
03899e5ea5
doc: Fix typo in highlight_disable_regex option name
...
The section describes highlight_disable_regex, but the example used
highlight_regex instead.
2022-11-05 21:37:25 +01:00
Sébastien Helleu
a70c626c11
core: update ChangeLog (issue #1844 )
2022-10-23 19:04:32 +02:00
Trygve Aaberge
6f1635ae4e
core: Prevent use of uninitialized memory when setting invalid color
...
If a color option value is null and is tried being set to an invalid
color, the value was set to uninitialized memory which can lead to a
segfault.
Can be reproduced with this script:
https://gist.github.com/trygveaa/6ddb3a52f525a7fd8e0908bafa83e07c
The option doesn't have to be set from a script, it also happens with
the /set command.
2022-10-23 19:00:29 +02:00
Sébastien Helleu
09839150a8
doc: remove extra "#" before hex color
2022-10-22 21:51:48 +02:00
Sébastien Helleu
fd526e38a3
debian: update changelog
2022-10-22 21:49:30 +02:00
Sébastien Helleu
133a424178
core: add version 3.7.1
2022-10-21 14:41:38 +02:00
Nils Görs
68f605594c
doc: update German documentation
2022-10-20 23:44:37 +02:00
Sébastien Helleu
cf5a9a0db5
trigger: execute trigger command on appropriate buffer ( closes #1841 )
...
This affects the following hook types:
- command
- command_run
- line
- modifier
- print
This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098 .
2022-10-20 20:19:37 +02:00
Sébastien Helleu
693c5e64a7
doc/faq: remove mention of obsolete WeeChat versions
2022-10-19 23:40:12 +02:00
Sébastien Helleu
4d645fcdc9
doc: fix language in links to other docs
2022-10-19 21:33:16 +02:00
Sébastien Helleu
d79b106361
python: remove functions defined for Python < 2.6
2022-10-16 09:00:37 +02:00
Sébastien Helleu
319abf4fd0
python: remove support of Python 2.x
2022-10-15 22:56:06 +02:00
Sébastien Helleu
7a544d5fcf
tests: ignore pylint error unnecessary-pass
2022-10-15 22:01:33 +02:00
Sébastien Helleu
56dbd871ea
api: do not expect any return value in callbacks change/delete of config_new_option (scripting API)
2022-10-15 21:46:00 +02:00
Sébastien Helleu
a1057c9a03
tests: add tests on config functions (scripting API)
2022-10-15 21:31:45 +02:00
Trygve Aaberge
ec11126246
python: Fix return types for config option callbacks
...
I erroneously typed the return types for these to int in commit
e0c117e14 , but they should be None.
2022-10-14 23:00:33 +02:00
Sébastien Helleu
f9dd5ee89b
core: add contributor (issue #1836 )
2022-10-14 22:48:49 +02:00
Sébastien Helleu
e3bbe2b5be
core: update ChangeLog
2022-10-14 22:47:39 +02:00
Latchezar Tzvetkoff
8765eb3b71
Allow terminal title to be left unchanged.
...
Fixes #1835 .
2022-10-14 22:42:21 +02:00
Sébastien Helleu
6619c421aa
irc: escape backslashes in raw buffer ( closes #1838 )
2022-10-12 21:43:03 +02:00
Sébastien Helleu
7d2e8b9143
core: allow command /toggle to create option before setting the value, if allowed in the section ( closes #1837 )
2022-10-12 21:29:38 +02:00
Sébastien Helleu
f97b74cae8
core: fix context info in buffers with free content ( closes #1832 )
2022-10-10 20:24:58 +02:00
Trygve Aaberge
6096350618
python: Include script examples in function docstring
...
This makes it possible to see how functions are used without having to
go to the web page. It's especially useful to see the types of the
callback functions.
2022-10-09 19:01:16 +02:00
Sébastien Helleu
7122b46baf
Version 3.8-dev
2022-10-09 08:34:22 +02:00
Sébastien Helleu
484f679e60
Version 3.7
2022-10-09 08:06:53 +02:00
Trygve Aaberge
fdb1ff3781
tests: Use LONGS_EQUAL for version number tests
...
util_version_number returns an int, but BYTES_EQUAL only compares the
last byte of the int, so it wouldn't test the rest of the int.
I see other tests for functions returning an int use LONGS_EQUAL, so
that seems correct to use.
2022-10-08 18:13:00 +02:00
Sébastien Helleu
193aa0448f
core: fix compilation warning on isdigit function
2022-10-08 12:18:09 +02:00
Sébastien Helleu
3932cf5a00
xfer: add missing include of netinet/in.h
...
This fixes compilation on FreeBSD 13.0.
2022-10-08 12:11:12 +02:00
Sébastien Helleu
8555cf465e
debian: update changelog
2022-10-08 11:52:44 +02:00
Sébastien Helleu
11f0d57dfd
debian: bump Standards-Version to 4.6.1.0
2022-10-08 11:52:14 +02:00
Nils Görs
1fd5dd4c34
doc: update German documentation
2022-10-06 15:02:08 +02:00
Sébastien Helleu
1fec7e8856
core: fix page scroll in bare display ( closes #1830 )
2022-10-05 20:33:35 +02:00
Trygve Aaberge
236d22e364
python: Include constant values in python stub
...
This is useful for two reasons:
1. When running unit tests for a script weechat needs to be mocked. By
having the constant values available in the stub file, they can be
loaded from that, instead of having to define the constants manually
for the mock.
2. If you log a constant value you have to look up what it means. This
makes it easier, in the same vein as PR #1824 .
2022-10-02 20:25:17 +02:00
Sébastien Helleu
4d3a3c67ac
irc: set local variable "filter" when doing /server raw xxx with raw buffer already opened ( closes #1448 )
2022-10-01 17:06:31 +02:00
Sébastien Helleu
ae61137216
trigger: add variable ${tg_hook_type} ( closes #1765 )
2022-09-30 21:32:27 +02:00
Trygve Aaberge
6bb4bed8bb
doc/api: Fix config_new_option types for non English docs
...
Only English was changed in commit 197a7a01e .
2022-09-30 07:53:37 +02:00
Sébastien Helleu
92cdcee8f6
api: change type of argument object_id in upgrade_new callback from string to integer (in scripts)
2022-09-29 21:38:04 +02:00
Sébastien Helleu
b2b110f1a3
api: change type of argument remaining_calls in hook_timer callback from string to integer (in scripts)
2022-09-29 21:21:01 +02:00
Trygve Aaberge
89400cbf7a
doc/api: Remove unnecessary cast in Python example
...
The highlight argument is already an int, so no point in casting it.
2022-09-29 17:13:19 +02:00
Trygve Aaberge
e0c117e14f
doc/api: Add types for Python callbacks
2022-09-29 17:13:19 +02:00
Sébastien Helleu
b978de5f84
debian: remove ubuntu/xenial patch (distro not supported any more)
...
As zstd is too old in ubuntu/xenial (0.5.1 while min version is 0.8.1), this
distro is not supported any more.
2022-09-29 16:04:58 +02:00
Sébastien Helleu
fd43ad6387
core: fix compilation with zstd < 1.4.0
...
Note: zstd ≥ 0.8.1 is now required to compile WeeChat.
2022-09-29 15:59:01 +02:00
Sébastien Helleu
009a7821b1
doc: update German auto-generated file
2022-09-29 11:07:38 +02:00
Nils Görs
5cfcec7212
doc: update German documentation
2022-09-29 11:06:13 +02:00
Nils Görs
c6671fc9db
core: update German translations
2022-09-29 11:04:56 +02:00
Sébastien Helleu
8295ea6da8
doc/user: remove tag "translation missing" in French user's guide
2022-09-29 09:47:50 +02:00
Sébastien Helleu
9817372553
doc/user: add chapter on log file rotation/compression
2022-09-29 09:46:43 +02:00
Sébastien Helleu
486df38a8d
php: add missing arginfo_weechat_string_parse_size in legacy arginfo
2022-09-29 07:48:55 +02:00
Trygve Aaberge
76d4cc7e3f
doc/api: Add values for hook_process constants
...
When logging this value I just see a number so I have to look up what it
means. Previously you would have to check the code or print the value of
each of these constants to see it. Seeing the value directly in the
documentation makes this much easier.
2022-09-28 21:42:21 +02:00
Sébastien Helleu
135960859d
doc/api: add note about C API for constant WEECHAT_HOOK_PROCESS_CHILD (function hook_process)
2022-09-28 21:01:01 +02:00
Sébastien Helleu
9f62c4a842
doc/api: fix typo
2022-09-28 20:58:29 +02:00
Sébastien Helleu
7711ed95c5
logger: add options to rotate and compress log files ( closes #314 )
...
New options:
- logger.file.rotation_compression_level
- logger.file.rotation_compression_type
- logger.file.rotation_size_max
2022-09-28 20:52:59 +02:00
Sébastien Helleu
26e6fdc645
api: add function file_compress
2022-09-27 20:49:12 +02:00
Sébastien Helleu
e7b6e8c60f
api: restrict number to integer in function string_parse_size
2022-09-27 15:50:43 +02:00
Sébastien Helleu
4d74a89cfc
api: add function string_parse_size
2022-09-27 15:50:43 +02:00
Nils Görs
be6a29a596
doc: update German documentation
2022-09-27 10:56:11 +02:00
Sébastien Helleu
34c043453b
irc: fix use of uninitialized variable ptr_nick
2022-09-26 21:21:27 +02:00
Sébastien Helleu
6f8aab186d
doc: update German auto-generated file
2022-09-20 19:23:57 +02:00
Nils Görs
201b24a02a
core: update German translations
2022-09-20 19:10:13 +02:00
Sébastien Helleu
01cf98e8fb
core: add key alt+backspace, change behavior of key ctrl+w ( closes #559 )
...
The key ctrl+w now deletes one word until whitespace.
The new key alt+backspace deletes one word (same behavior as ctrl+w in previous
releases).
2022-09-18 23:26:49 +02:00
Sébastien Helleu
d7c0e896b2
core: fix style in ChangeLog
2022-09-18 17:44:55 +02:00
Sébastien Helleu
389f9f436b
trigger: escape arguments with double quotes in output of /trigger input|output|recreate ( closes #190 )
2022-09-18 17:44:05 +02:00
Sébastien Helleu
fe62d93dd0
build: update version of Debian/Ubuntu distros in examples
2022-09-18 14:39:36 +02:00
Sébastien Helleu
d5c285f0a6
build: remove patches for Debian/Raspbian Stretch
2022-09-18 14:39:02 +02:00
Sébastien Helleu
a00edcf50e
tests: add tests on filter functions
2022-09-17 18:56:35 +02:00
Sébastien Helleu
be7380f9b3
core: fix order of filters after renaming a filter (issue #1695 )
2022-09-17 16:01:02 +02:00
Sébastien Helleu
5284921701
irc: fix message when disconnecting from server in case of high lag when server option autoreconnect is off ( closes #1708 )
2022-09-17 12:12:06 +02:00
Sébastien Helleu
36d2e7427e
core: fix wrong terminal title on terminal resize ( closes #1702 )
2022-09-17 11:56:03 +02:00
Sébastien Helleu
0df582c7c1
core: sort filters by name ( closes #1695 )
2022-09-17 11:07:22 +02:00
Sébastien Helleu
a99fc17d40
spell: allow special dict value "-" to disable spell checking on a specific buffer ( closes #1699 )
2022-09-17 10:44:21 +02:00
Sébastien Helleu
2b2ba62600
doc/api: add version 3.7 for priority in function hook_line
2022-09-17 07:52:39 +02:00
Sébastien Helleu
21683def12
doc: update German auto-generated file
2022-09-16 21:06:33 +02:00
Sébastien Helleu
96c22c41ba
api: add support of priority in function hook_line ( closes #1821 )
2022-09-16 21:05:51 +02:00
Nils Görs
ba27ec8d65
core: update German translations
2022-09-16 08:23:27 +02:00
Sébastien Helleu
c6d8b54459
irc: add option irc.look.display_pv_nick_change
2022-09-15 20:31:06 +02:00
Sébastien Helleu
82f59d2a98
doc: update auto-generated files
2022-09-11 16:30:55 +02:00
Nils Görs
731f7e4243
core: update German translations
2022-09-11 16:25:17 +02:00
Ivan Pešić
2178440b7c
core: Update Serbian translation
...
Includes documentation update.
2022-09-11 11:50:35 +02:00
Sébastien Helleu
57af62c1c0
doc/api: move function hook_completion in chapter on hook priority
2022-09-11 11:45:02 +02:00
Sébastien Helleu
742773e070
doc/api: update chapter on hook priority
2022-09-11 10:52:25 +02:00
Sébastien Helleu
ac646da4fb
doc/api: update note about priority in hook functions
2022-09-11 09:50:47 +02:00
Sébastien Helleu
9cb68b13a9
irc: replace chars "\01" by spaces in CTCP replies ( closes #1819 )
...
This prevents any attack due to an external security issue in the Linux
netfilter implementation (nf_conntrack_irc).
See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2663
2022-09-10 13:43:45 +02:00
Sébastien Helleu
5070a6330c
xfer: use larger buffer for IP address
...
This removes a gcc warning about a too small buffer.
2022-09-09 19:20:41 +02:00
Sébastien Helleu
d5cbd6c49a
irc: fix display of message 350 (whois, gateway) ( closes #1815 )
2022-09-05 22:12:17 +02:00
Sébastien Helleu
2a32456f19
tests: add missing include of string.h
2022-09-05 20:49:59 +02:00
Sébastien Helleu
b0bf2fbc97
core: remove debug print
2022-09-03 22:38:12 +02:00
Sébastien Helleu
e8524ea2c4
xfer: fix DCC file receive on Termux ( closes #1811 )
...
This fixes such error displayed on Termux when receiving a DCC file:
xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known
2022-09-03 22:29:46 +02:00
Sébastien Helleu
7cf9399616
core: rename argument "length" to "bytes" in function string_strndup (header files)
...
Argument was already renamed in commit f8915129bf
but it was incomplete (missing header files).
2022-08-31 22:51:47 +02:00
Sébastien Helleu
68ecfb16a1
irc: fix target buffer of generic errors when they contain a target nick ( closes #1814 )
2022-08-29 22:45:28 +02:00
Sébastien Helleu
f5604510cd
script: use API function weechat_crypto_hash_file in script_repo_sha512sum_file
2022-08-16 21:40:02 +02:00
Sébastien Helleu
0090695f7d
api: add function crypto_hash_file
2022-08-16 21:33:50 +02:00
Sébastien Helleu
e614410815
irc: fix extract of isupport value when it is last in list and without value ( closes #1807 )
2022-08-15 18:14:03 +02:00
Sébastien Helleu
fb14e67364
buflist: improve help on option buflist.look.enabled
2022-08-15 14:43:25 +02:00
Sébastien Helleu
a31de83a3c
core: move line from "New features" to "Bug fixes"
2022-08-15 13:11:08 +02:00
Sébastien Helleu
b26fb7fba6
core: add new option trigger.color.identifier in ChangeLog
2022-08-15 13:10:29 +02:00
Sébastien Helleu
0f67f55098
trigger: add elapsed time for trigger execution on monitor buffer when trigger debug is set ( closes #1806 )
2022-08-15 12:44:16 +02:00
Sébastien Helleu
1ce2d7f56d
trigger: fix error on monitor buffer creation when trigger debug is >= 1 and monitor buffer is closed
2022-08-15 12:42:26 +02:00
Sébastien Helleu
223eefef67
irc: display ACCOUNT command in private buffers
2022-08-13 22:58:37 +02:00
Sébastien Helleu
aee3da5452
irc: add options and display SETNAME command in channels and private buffers ( closes #1805 )
...
New options:
- irc.color.message_setname
- irc.look.smart_filter_setname
2022-08-13 22:47:22 +02:00
Sébastien Helleu
d3b84eaf6c
irc: display CHGHOST command in private buffers
2022-08-13 22:16:46 +02:00
Sébastien Helleu
ac50a5dda7
doc: update auto-generated files
2022-08-13 19:07:56 +02:00
Sébastien Helleu
a36fa2faea
logger: improve help on option logger.file.auto_log
2022-08-13 19:02:55 +02:00
Sébastien Helleu
1e0d59a5e6
irc: add missing tag "irc_numeric" in all numeric IRC commands ( closes #1804 )
2022-08-13 17:34:43 +02:00
Sébastien Helleu
06b6f457d9
tests: add tests on dynamic string functions with NULL string
2022-08-13 14:38:08 +02:00
Sébastien Helleu
57c0a82557
core: fix CMake warning in Python detection
2022-08-13 14:37:00 +02:00
Sébastien Helleu
dd65938a85
doc: update German auto-generated file
2022-08-09 23:35:57 +02:00
Nils Görs
ff417f88ea
core: update German translations
2022-08-08 10:22:56 +02:00
Nils Görs
2857b7b4b7
core: update German translations
2022-08-08 10:08:44 +02:00
Sébastien Helleu
a8080505f3
tests: add tests on function xfer_file_search_crc32
2022-08-08 08:06:23 +02:00
Sébastien Helleu
bbe8afcbd4
xfer: move and rename function xfer_filename_crc32 to xfer-file.c
2022-08-08 06:57:39 +02:00
Sébastien Helleu
25f25073b9
irc: fix parsing of messages with trailing spaces and no trailing parameter ( closes #1803 )
2022-08-07 23:28:11 +02:00
Sébastien Helleu
d068fe0de5
core: add option -save in command /upgrade ( closes #1630 )
2022-08-07 16:48:12 +02:00
Sébastien Helleu
d91cddc909
xfer: disconnect all active DCC chats and files on /upgrade
2022-08-07 11:15:03 +02:00
Sébastien Helleu
9fd71067e7
xfer: fix refresh of xfer buffer after /upgrade
2022-08-07 11:11:10 +02:00
Sébastien Helleu
441d532f15
relay: fix refresh of relay buffer after /upgrade
2022-08-07 10:04:47 +02:00
Sébastien Helleu
57c9f371bc
relay: use enum type for websocket status in client
2022-08-07 09:31:24 +02:00
Sébastien Helleu
4fa278c2c3
doc: update German auto-generated file
2022-08-05 22:34:40 +02:00
Nils Görs
0edae0d93d
Merge branch 'master' of https://github.com/weechat/weechat
2022-08-05 09:49:59 +02:00
Nils Görs
fbc2e86d0e
core: update German translations
2022-08-05 09:49:27 +02:00
Sébastien Helleu
06622b5acb
doc: update German auto-generated file
2022-08-04 22:14:28 +02:00
Nils Görs
9bb903cbc8
core: update German translations
2022-08-04 12:46:04 +02:00
Sébastien Helleu
e9b8c9b6aa
ci: fix Ubuntu code name when applying Debian patch
2022-08-03 22:05:45 +02:00
Sébastien Helleu
b0eb3c9347
ci: remove macOS 10.15, add macOS 12 in CI
2022-08-03 21:57:44 +02:00
Sébastien Helleu
2102ef742b
core: update ChangeLog
2022-08-03 21:56:55 +02:00
Sébastien Helleu
5d51e7286c
ci: remove tests on macOS 10.15
2022-08-03 21:52:47 +02:00
Sébastien Helleu
fe892460ba
tests: fix pylint errors
2022-08-03 21:51:51 +02:00
Sébastien Helleu
0bb7a34748
doc: fix pylint errors
2022-08-03 21:51:51 +02:00
Sébastien Helleu
ee1efedbd7
ci: switch from Ubuntu 20.04 to 22.04
2022-08-03 21:51:51 +02:00
Emir SARI
492a68b3de
Update Turkish translations
...
Fixes plural structure to comply with gettext Turkish specification.
2022-08-03 21:20:31 +02:00
Sébastien Helleu
2bd3d32f0d
irc: mention how to remove capability in /help cap
2022-08-03 21:18:17 +02:00
Sébastien Helleu
6b28cc001f
tests: fix _ast_num in script generator
2022-08-02 23:52:31 +02:00
Sébastien Helleu
23707a12ea
tests: fix scripting API tests with Python 3.8
2022-08-02 21:35:33 +02:00
Sébastien Helleu
a7364d055b
tests: disable pylint errors in testapi.py
2022-08-02 21:21:07 +02:00
Sébastien Helleu
4d4a6f99f9
tests: add tests on hdata functions (scripting API)
2022-08-02 21:11:45 +02:00
Sébastien Helleu
a4c73b9ae7
tests: fix assignment in tcl script generator
2022-08-02 20:55:59 +02:00
Sébastien Helleu
3bc0453cae
tests: fix assignment in perl script generator
2022-08-02 20:55:36 +02:00
Sébastien Helleu
2ed281af02
tests: use double quotes instead of simple quotes in ruby script generator
...
This allows to use escaped chars in strings.
2022-08-02 20:54:35 +02:00
Sébastien Helleu
05abbac297
tests: add subscript in script generator
2022-08-02 20:52:40 +02:00
Sébastien Helleu
237c37e719
tests: fix unary op in script generator
2022-08-02 20:51:40 +02:00
Sébastien Helleu
39f2b2f7b9
ruby: fix function hdata_get_string
2022-08-02 20:50:48 +02:00
Sébastien Helleu
8f6395e889
guile: fix function hdata_get_string
2022-08-02 20:50:24 +02:00
Sébastien Helleu
53df45de48
php: fix function hdata_compare
2022-08-02 20:49:35 +02:00
Sébastien Helleu
bcb8647aa4
scripts: fix issue with long interval in function hook_timer
...
Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
2022-08-01 22:18:38 +02:00
Sébastien Helleu
b1404b0277
scripts: fix issue with year ≥ 2038 in functions print_date_tags and print_y_date_tags
...
Affected plugins: python, lua, tcl, guile, javascript.
2022-08-01 21:03:44 +02:00
Sébastien Helleu
1514570ff0
scripts: fix issue with year ≥ 2038 in function infolist_new_var_time
...
Affected plugins: python, lua, tcl, guile, javascript.
2022-08-01 20:32:09 +02:00
Sébastien Helleu
2475ba43a3
javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time
2022-08-01 20:13:01 +02:00
Sébastien Helleu
d2c2f9e6cd
tests: fix run of Guile test script
2022-08-01 20:02:35 +02:00
Sébastien Helleu
d8abdc57ee
core: fix styles in ChangeLog
2022-07-31 09:59:18 +02:00
Sébastien Helleu
e77ea9dc26
buflist: add variable "${hotlist_priority_number}" (integer version of "${hotlist_priority}")
2022-07-31 09:58:29 +02:00
Emir SARI
324f0aaa2d
Update Turkish translations
2022-07-30 07:53:40 +02:00
Nils Görs
ae273b2714
core: update German translations
2022-07-28 13:45:27 +02:00
Sébastien Helleu
06a05fd674
doc: update German auto-generated files
2022-07-27 22:07:50 +02:00
Sébastien Helleu
a50143fdf8
irc: display an error message when using command /dcc without xfer plugin loaded
2022-07-27 22:07:24 +02:00
Sébastien Helleu
56b82fb115
xfer: fix crash when closing DCC chat buffer
2022-07-27 22:06:48 +02:00
Nils Görs
9b4f52ac13
core: update German translations
2022-07-26 13:45:37 +02:00
Sébastien Helleu
906ac1d1e1
relay: exit function relay_irc_recv if params can not be allocated
2022-07-24 23:02:09 +02:00
Sébastien Helleu
2a145d7cc1
core: remove dead assignments
2022-07-24 23:01:38 +02:00
Sébastien Helleu
68ad24f2df
core: add option weechat.look.highlight_disable_regex and buffer property "highlight_disable_regex" ( closes #1798 )
2022-07-24 22:43:48 +02:00
Sébastien Helleu
1796634d83
core: use dynamic string in function gui_bar_item_get_value
2022-07-24 21:18:26 +02:00
Sébastien Helleu
a37c46c21e
doc: use non-breaking spaces before links to notes
2022-07-22 17:24:44 +02:00
Sébastien Helleu
d43b9e99c1
doc/scripting: add missing fields "paramN" and "num_params" in output of "irc_message_parse"
...
These new fields were added in version 3.4 with major improvements of the IRC
message parser.
2022-07-22 17:06:49 +02:00
Sébastien Helleu
d5c4342bce
irc: fix display of TOPIC message with an empty trailing parameter
2022-07-21 11:16:50 +02:00
Sébastien Helleu
569c93c6fb
irc: fix display of QUIT message with an empty trailing parameter ( closes #1797 )
...
The regression was introduced with the new way to parse IRC message parameters,
in version 3.4.
2022-07-21 11:10:29 +02:00
Sébastien Helleu
96ed471261
relay: fix parsing of IRC messages received from clients ( closes #1796 )
...
The IRC parser improved in version 3.4 is now used to parse command
parameters (variables "num_params" and "paramN" in output of parser function).
2022-07-21 10:20:10 +02:00
Sébastien Helleu
6b59fc8557
irc: use API function string_rebuild_split_string in irc_protocol_string_params
2022-07-20 13:20:07 +02:00
Sébastien Helleu
b7441bd7a3
api: add arguments "index_start" and "index_end" in function string_rebuild_split_string
2022-07-20 13:16:35 +02:00
Sébastien Helleu
62e68f965f
api: rename function string_build_with_split_string to string_rebuild_split_string
2022-07-20 12:14:40 +02:00
Sébastien Helleu
0440309cee
irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled ( closes #1795 )
2022-07-16 14:05:48 +02:00
Sébastien Helleu
e057c16b36
api: add info "uptime_current"
...
This info returns time duration between the start of the current WeeChat
process and now (so upgrades with /upgrade are ignored).
2022-07-10 13:02:35 +02:00
Sébastien Helleu
c4cade3550
Version 3.7-dev
2022-07-10 09:41:57 +02:00