summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
AgeCommit message (Collapse)Author
2023-09-16api: add function hook_urlSébastien Helleu
2023-08-25core: add option `callbacks` in command `/debug`Sébastien Helleu
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core: make get/set object properties case sensitive (issue #1872)Sébastien Helleu
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-04-24core: add functions to get short description of hooksSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
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-01-04core: update copyright datesSébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-08-14core: split wee-hook.c into multiple sourcesSébastien Helleu
2018-08-12api: add function hook_lineSébastien Helleu
2018-08-12core: fix check of tags in linesSébastien Helleu
All changes: - fix check of tags in lines: check lines without tags, fix check of tags with negation ("!tag") - add string functions string_split_tags and string_free_split_tags - add tests on function gui_line_match_tags
2018-03-11Revert "core: remove colors from prefix/message only when needed in ↵Sébastien Helleu
hook_print_exec" This reverts commit bfc579cb3354cb47a224c8fa55b6a2e5684c7ab9.
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-11-04core: remove colors from prefix/message only when needed in hook_print_execSébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-09-23core, plugins: check return code of strftime functionSébastien Helleu
2017-08-12core: fix cast of time_t (to "long long" instead of "long") (closes #1051)Sébastien Helleu
2017-06-25core: limit hook_command_run to the exact given command (when no "*" are in ↵Sébastien Helleu
command hook)
2017-01-01core: update copyright datesSébastien Helleu
2016-12-13core, xfer: display more information on fork errors (issue #573)Sébastien Helleu
2016-11-29core: add optional arguments in completion template, sent to the callbackSébastien Helleu
2016-08-22core: fix warnings about unused variablesSébastien Helleu
2016-08-19api: fix connection to servers with hook_connect() on Windows 10 with ↵Sébastien Helleu
Windows subsystem for Linux (issue #770) The test on socketpair() function is now made when hooks are initialized (instead of doing the test at compilation time).
2016-04-23api: add support of functions in hook_processSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-03-06core: remove plugin pointer in hooks debug messagesSébastien Helleu
2016-01-01core: update copyright datesSébastien Helleu
2015-07-18core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 ↵Sébastien Helleu
on Linux/BSD) (closes #465) The calls to select() are replaced by poll(), which doesn't have limitation on file descriptor number.
2015-07-16core: fix comment in function hook_find_posSébastien Helleu
2015-07-15core: add variables with count of hooksSébastien Helleu
2015-07-14core: reset pointers, file descriptors and child PIDs in unhook()Sébastien Helleu
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-07-04core: add missing comments before functions when the result must be freed ↵Sébastien Helleu
after use
2015-05-01core: fix compilation on CygwinSébastien Helleu
The header sys/select.h is now required for select() function.
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-21core: add gnutls version in #if compiler directivesSébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-11-22api: fix truncated process output in hook_process() (closes #266)Sébastien Helleu
2014-11-15core: add debug message in hook_process when core debug >= 1Sébastien Helleu
2014-08-29api: use microseconds instead of milliseconds in functions util_timeval_diff ↵Sébastien Helleu
and util_timeval_add
2014-08-23core: add missing return code in comment of function hook_command_execSébastien Helleu
2014-08-23core: allow incomplete commands if unambiguous (task #5419)Sébastien Helleu