summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2024-01-06core: add variable "opening" in buffer, do not send buffer signals when the ↵Sébastien Helleu
buffer is opening
2024-01-05core: add support of microseconds in command `/print -date` (issue #649)Sébastien Helleu
2024-01-05api: add function util_parse_time (issue #649)Sébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
2023-12-24core: display when zstd is not available in output of `/debug libs`Sébastien Helleu
2023-12-14core: fix styleSébastien Helleu
2023-11-23core: fix evaluation of `${raw_hl:...}` with escaped prefix insideSébastien Helleu
Now `${raw_hl:\${` returns `\${` instead of `${`.
2023-11-23core: evaluate expressions even when the suffix is missing (issue #2042, ↵Sébastien Helleu
issue #1714)
2023-11-23core: add syntax highlighting in evaluation of expressions, add option ↵Sébastien Helleu
weechat.color.eval_syntax_colors (issue #2042) Syntax highlighting (raw string without evaluation): `${raw_hl:xxx}` Syntax highlighting: `${hl:xxx}`
2023-11-11core: add key ctrl+o to send command found and insert next one in input ↵Sébastien Helleu
(issue #2040)
2023-11-11core: add incremental search in commands history (issue #2040)Sébastien Helleu
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-04core: fix double call to hook config when an option is unsetSébastien Helleu
2023-11-03core: call hook config when options are freed by unset or when file/section ↵Sébastien Helleu
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-01core, plugins: set error to NULL before calling strtol()Sébastien Helleu
This is not strictly necessary, just in case the function strtol() doesn't update the pointer.
2023-11-01core: display an error with command `/history N` when N is not a valid integerSébastien Helleu
2023-10-30core: fix memory leak when config version is invalid or not supportedSébastien Helleu
2023-10-30core: fix memory leak when infolist variable can not be createdSébastien Helleu
2023-10-30core: fix use NULL pointer when a config file has no optionsSébastien Helleu
2023-10-30core: fix crash when "config_version" is present in a configuration file ↵Sébastien Helleu
without a value
2023-10-30core: display an error on startup if environment variable "HOME" is not setSébastien Helleu
2023-10-26core: display only version with command `/version`, add options `-o` and ↵Sébastien Helleu
`-ol` in command `/upgrade`
2023-10-23core: fix crash when a custom bar item name is already used by a default bar ↵Sébastien Helleu
item (closes #2034)
2023-10-22core: add number of processes in command `/sys waitpid`Sébastien Helleu
2023-10-20core: fix random timeouts when a lot of concurrent processes are launched ↵Sébastien Helleu
with hook_process (closes #2033)
2023-10-20core: add description for examples in help on some commands (issue #2005)Sébastien Helleu
Help is updated on these commands: - `/allbuf` - `/bar` - `/print` - `/repeat` - `/secure` - `/wait`
2023-10-17core: format and translate commands line by line (issue #2005)Sébastien Helleu
2023-10-17api: add support of format/translation of command arguments description line ↵Sébastien Helleu
by line (issue #2005)
2023-10-17api: add function string_concat (issue #2005)Sébastien Helleu
2023-10-15core: allow wildcard in command `/proxy del` (issue #1956)Sébastien Helleu
2023-10-15core: allow wildcard in command `/item del` (issue #1956)Sébastien Helleu
2023-10-15core: allow wildcard in command `/bar del` (issue #1956)Sébastien Helleu
2023-10-15core: allow wildcard in command `/filter` (issue #1956)Sébastien Helleu
A mask with wildcards is now allowed in the following commands: - `/filter enable` - `/filter disable` - `/filter toggle` - `/filter del`
2023-10-15core: make libintl.h required if CMake option ENABLE_NLS is enabled (issue ↵Sébastien Helleu
#2031)
2023-10-13core: call curl init and cleanup functionsSébastien Helleu
This is to prevent issues when these functions are not thread-safe.
2023-10-13core: only print hook_url errors when debug is enabledTrygve Aaberge
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-13core: add error codes to output in hook_urlTrygve Aaberge
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-13core: run hook_url callback when pthread_create failedTrygve Aaberge
2023-10-13core: set "error" field of "output" hashtable in hook_url in case of ↵Sébastien Helleu
transfer timeout
2023-10-10core: fix zombie processes remaining after the end of forked processes ↵Sébastien Helleu
(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-01core: make zstd dependency optional (closes #2024)Sébastien Helleu
2023-09-26core, relay: make inet_pton() return value checks more strictLuK1337
inet_pton() can return values < 0.
2023-09-26core: replace inet_addr() with inet_pton()LuK1337
man pages as well as rpminspect suggest that we shouldn't be using inet_addr().
2023-09-25core: fix TOTP moving factor on big-endian systemsLuK1337
2023-09-16core: properly terminate thread and release memory in url hookSébastien Helleu
2023-09-16api: add function hook_urlSébastien Helleu
2023-09-13core: add algorithms `sha512-224`, `sha512-256`, `sha3-*`, blake2b-*` and ↵Sébastien Helleu
`blake2s-*` in option sec.crypt.hash_algo (closes #2008)
2023-09-13api: add algorithms `sha512-224`, `sha512-256`, blake2b-*` and `blake2s-*` ↵Sébastien Helleu
in hash functions (issue #2008)
2023-09-12core: translate error messages (issue #2013)Sébastien Helleu
2023-09-12core: automatically backup config file read if it has an unsupported version ↵Sébastien Helleu
(closes #2013)