summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-callback.c
AgeCommit message (Collapse)Author
2022-11-06trigger: add regex command "y" to translate chars, set default regex command ↵Sébastien Helleu
to "s" (regex replace) (closes #1510)
2022-10-20trigger: execute trigger command on appropriate buffer (closes #1841)Sébastien Helleu
This affects the following hook types: - command - command_run - line - modifier - print This fixes a regression introduced in WeeChat 3.7 by commit 0f67f55098db564c82c848262540704985790129.
2022-09-30trigger: add variable `${tg_hook_type}` (closes #1765)Sébastien Helleu
2022-08-15trigger: add elapsed time for trigger execution on monitor buffer when ↵Sébastien Helleu
trigger debug is set (closes #1806)
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-01-17core: update copyright datesSébastien Helleu
2021-12-30trigger: add variables `${tg_tag_irc_xxx}` containing IRC message tags ↵Sébastien Helleu
(issue #1680)
2021-04-06trigger: add variables "${tg_shell_argc}" and "${tg_shell_argvN}" in command ↵Sébastien Helleu
trigger evaluated strings (closes #1624)
2021-01-02core: update copyright datesSébastien Helleu
2020-10-21trigger: add variable "tg_argc" in data set by command trigger (closes #1576)Sébastien Helleu
2020-10-10trigger: add a function to set variables common to all triggers (issue #1567)Sébastien Helleu
2020-10-10trigger: add tg_trigger_name variable to all triggers (closes #1567)Simmo Saan
2020-07-31trigger: fix recursive calls to triggers using regex (closes #1546)Sébastien Helleu
2020-05-17trigger: add (void) before calls to trigger_callback_execute when the ↵Sébastien Helleu
returned value is ignored
2020-05-17trigger: only return trigger's return code when condition evaluates to trueSimmo Saan
2020-05-09api: use buffer pointer in argument "modifier_data" sent to weechat_print ↵Sébastien Helleu
modifier callback (closes #42)
2020-01-04core: update copyright datesSébastien Helleu
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-04-13trigger: add hook "info_hashtable"Sébastien Helleu
2019-04-13trigger: add hook "info"Sébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-10-01core: replace "long unsigned int" by "unsigned long"Sébastien Helleu
2018-08-17trigger: add variables "tg_prefix_nocolor" and "tg_message_nocolor" in line ↵Sébastien Helleu
trigger
2018-08-17trigger: rename variable "tg_tags" to "tags" in line triggerSébastien Helleu
2018-08-16trigger: allow creation of temporary variables with the regexSébastien Helleu
2018-08-15trigger: add missing initialization of variable "tags" in hook line callbackSébastien Helleu
2018-08-15trigger: fix memory leak in hook_line trigger callbackSébastien Helleu
2018-08-12api: add function hook_lineSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-09-23core, plugins: check return code of strftime functionSébastien Helleu
2017-06-10trigger: if hashmap creation failed, don't use tagsNeui
If hashmap creation fails (eg. not enough memory), it jumps to the label "end", where it checks the pointer tags, that hadn't been initialized before. The simple fix is to initialize it before creating the hashmap.
2017-06-02trigger: add "irc_server" and "irc_channel" pointers in data for IRC ↵Sébastien Helleu
signal/modifier hooks
2017-01-01core: update copyright datesSébastien Helleu
2016-06-18api: remove functions printf_date() and printf_tags()Sé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-01-01core: update copyright datesSébastien Helleu
2015-07-04core: add missing comments before functions when the result must be freed ↵Sébastien Helleu
after use
2015-01-01core: update copyright datesSébastien Helleu
2014-10-26trigger: evaluate and replace regex groups at same time, new format for ↵Sébastien Helleu
regex option in triggers (incompatible with version 1.0) (closes #224)
2014-04-12trigger: add variable "tg_tag_host" (from tag "host_xxx" in message)Sébastien Helleu
2014-04-01trigger: add filter in trigger monitor bufferSébastien Helleu
The filter can be set with /trigger monitor <filter> or by entering data in the trigger monitor input.
2014-03-16trigger: fix build of hashtable in hsignal callback when values have type ↵Sebastien Helleu
"string"
2014-03-13api: add callback in function string_replace_regexSebastien Helleu
2014-03-02trigger: add variable "tg_notify" (notify level of a message, if different ↵Sebastien Helleu
from "none")
2014-02-22trigger: fix potential uninitialized pointer in signal hook callbackSebastien Helleu
2014-02-22trigger: fix crash when a signal is received with type "int" and NULL ↵Sebastien Helleu
pointer in signal_data
2014-02-14trigger: fix return code of focus callbackSebastien Helleu