summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-callback.c
AgeCommit message (Collapse)Author
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
2014-02-13trigger: add strings without colors in hashtable for modifier ↵Sebastien Helleu
"weechat_print" and hook print For modifier "weechat_print", variables added: - tg_string_nocolor (same as tg_string, without colors) - tg_prefix_nocolor (same as tg_prefix, without colors) - tg_message_nocolor (same as tg_message, without colors) For hook print, variables added: - tg_prefix_nocolor (same as tg_prefix, without colors) - tg_message_nocolor (same as tg_message, without colors)
2014-02-13trigger: add "tg_prefix" and "tg_message" in hashtable for modifier ↵Sebastien Helleu
"weechat_print"
2014-02-13trigger: escape chars in regex replacement (when trigger is created)Sebastien Helleu
2014-02-13trigger: evaluate regex replacement on execution of trigger (and not when ↵Sebastien Helleu
creating the trigger)
2014-02-13trigger: fix call of IRC message parser on non-IRC messages in modifier callbackSebastien Helleu
2014-02-13trigger: add "server" in hashtable after parsing of IRC messageSebastien Helleu
2014-02-13trigger: parse IRC messages received in signal/modifier hook callbacksSebastien Helleu
The parsed message is added into hashtable "extra_vars". For example, signal "freenode,irc_in_PRIVMSG" received with the message "hello world!" on channel #weechat gives in the hashtable: extra_vars: tags: "" host: "tester!user@host.com" tg_signal: "freenode,irc_in_PRIVMSG" channel: "#weechat" tg_signal_data: ":tester!user@host.com PRIVMSG #weechat :hello world!" arguments: "#weechat :hello world!" nick: "tester" command: "PRIVMSG" message_without_tags: ":tester!user@host.com PRIVMSG #weechat :hello world!"
2014-02-13trigger: refactor some code in hook callbacks using macrosSebastien Helleu
2014-02-13trigger: add hook focusSebastien Helleu
2014-02-13trigger: add hook commandSebastien Helleu
2014-02-13trigger: add extra colors in trigger monitor bufferSebastien Helleu
2014-02-13trigger: add the name of buffer on trigger monitor when executing a commandSebastien Helleu
2014-02-10trigger: add hook configSebastien Helleu
2014-02-09trigger: set variables in hashtable using message tagsSebastien Helleu
2014-02-09core: improve the string_replace_regex function (add reference char, change ↵Sebastien Helleu
syntax for match refs) The reference char is now an argument for the function. The references are now $0 .. $99 and $+ was added (last match, with highest number). The syntax to replace a match with one char is now: $.cN or $.c+ (for example: "$.*3").
2014-02-09trigger: add missing init of buffer pointer in modifier callbackSebastien Helleu
2014-02-09trigger: fix crash in callback if one regex is NULL (invalid)Sebastien Helleu
2014-02-09trigger: add buffer pointer in modifier callbackSebastien Helleu
2014-02-09trigger: refactor some code in hook callbacks (debug, conditions, regex, ↵Sebastien Helleu
command)
2014-02-09trigger: fix evaluated command in callbackSebastien Helleu
2014-02-09trigger: split trigger command on creation, not when executing the callbackSebastien Helleu
2014-02-09trigger: add hook command_runSebastien Helleu
2014-02-09trigger: remove the timer hook pointer during the last timer callSebastien Helleu
2014-02-09trigger: add timerSebastien Helleu
2014-02-09trigger: execute callback even if regex/command are not set in the triggerSebastien Helleu
2014-02-09trigger: add hsignalSebastien Helleu
2014-02-09trigger: add support of variable in regex optionSebastien Helleu
Examples with new format: /regex/text/ /regex/text/var /regex1/text1/ /regex2/text2/ /regex1/text1/var /regex2/text2/var
2014-02-09trigger: fix regex result in a hook printSebastien Helleu
2014-02-09trigger: display regex changes in monitor bufferSebastien Helleu
2014-02-09trigger: add trigger pluginSebastien Helleu