summaryrefslogtreecommitdiff
path: root/src/core/hook
AgeCommit message (Collapse)Author
2024-04-01core: fix print of pointer valuesSébastien Helleu
2024-03-12core: remove "wee-" prefix from source files in src/core and src/core/hookSébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
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-10-30core: fix memory leak when infolist variable can not be createdSé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-17api: add support of format/translation of command arguments description line ↵Sébastien Helleu
by line (issue #2005)
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-09-16core: properly terminate thread and release memory in url hookSébastien Helleu
2023-09-16api: add function hook_urlSébastien Helleu
2023-08-25core: add option `callbacks` in command `/debug`Sébastien Helleu
2023-04-12core: replace SSL by TLS in comments (issue #1903)Sébastien Helleu
2023-01-30core: update description of function hook_command_display_error_unknownSébastien Helleu
2023-01-30core: inform that commands are case sensitive when another command with ↵Sébastien Helleu
different case is found (issue #1877)
2023-01-30core: improve prioritization of commands starting with same chars in similar ↵Sébastien Helleu
commands
2023-01-30core: display similar command names when a command is unknown (closes #1877)Sébastien Helleu
2023-01-29core: properly skip command char when it is a wide char in exec of ↵Sébastien Helleu
hook_command_run
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core, plugins: check that string parameters are not NULL in search functions ↵Sébastien Helleu
(issue #1872)
2023-01-28core, plugins: make info, info_hashtable and infolist case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core, plugins: make commands, hook command_run, completions and aliases case ↵Sébastien Helleu
sensitive (issue #1872)
2023-01-28core: move function hook_get_priority_and_name to wee-string.c (issue #1872)Sébastien Helleu
2023-01-01core: update copyright datesSébastien Helleu
2022-09-16api: add support of priority in function hook_line (closes #1821)Sébastien Helleu
2022-07-24core: remove dead assignmentsSébastien Helleu
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-07-02api: run hook_print callback also on empty messagesSébastien Helleu
2022-04-24api: allow to catch multiple signals in functions hook_signal and ↵Sébastien Helleu
hook_hsignal (closes #1780)
2022-04-24core: add functions to get short description of hooksSébastien Helleu
2022-03-13core: add function gui_buffer_new_props (issue #1759)Sébastien Helleu
This function allows to create a buffer and set properties via a hashtable, before the signal "buffer_opened" is sent.
2022-01-17core: update copyright datesSébastien Helleu
2022-01-15core: fix search of commands with UTF-8 chars in name when option ↵Sébastien Helleu
weechat.look.command_incomplete is on (issue #1739)
2021-03-16core: add options to customize commands on system signals, quit by default ↵Sébastien Helleu
on SIGHUP when not running headless (closes #1595) New options to customize behavior on signals received, with the default behavior: - weechat.signal.sighup: quit in normal mode, reload config in headless - weechat.signal.sigquit: quit - weechat.signal.sigterm: quit - weechat.signal.sigusr1: no command executed by default - weechat.signal.sigusr2: no command executed by default The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now possible to run commands when they are received. The SIGHUP signal makes now WeeChat quit, it was the behavior before version 2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6).
2021-01-02core: update copyright datesSébastien Helleu
2020-11-17core: fix and normalize error messagesSébastien Helleu
2020-05-08core: rename functions hook_completion_{get_string|list_add} to ↵Sébastien Helleu
completion_{get_string|list_add} Old functions are kept for compatibility reasons.
2020-04-18core: make GnuTLS a required dependencySébastien Helleu
2020-01-20core: flush stdout/stderr before forking in hook_process function (closes #1441)Sébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-12-18core: add missing variable "proxy" in function hook_connect_print_logSébastien Helleu
2019-08-31core: fix compilation with autotools on FreeBSD 12.0Sébastien Helleu
2019-08-04core: return NULL immediately if string is NULL in function hook_modifier_execSébastien Helleu
2019-06-16core: replace newlines by spaces in argument "completion" of function ↵Sébastien Helleu
hook_command (closes #538)
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu