diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-14 09:32:24 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-14 09:32:24 +0100 |
commit | b9c8569422e0c13d3dc51bffce6e72b7306cc23e (patch) | |
tree | d3b7869edb73f7d05f014c8219c098b5f5e695a3 /src/plugins/trigger/trigger-command.c | |
parent | b626df72fb7cdc9d9f23a0e5a81209faace87c0f (diff) | |
download | weechat-b9c8569422e0c13d3dc51bffce6e72b7306cc23e.zip |
trigger: add variable "${tg_trigger_name}" in command trigger evaluated strings (closes #1580)
${tg_trigger_name} is replaced by the trigger name in these command strings:
- description
- arguments
- description of arguments
- completion
Diffstat (limited to 'src/plugins/trigger/trigger-command.c')
-rw-r--r-- | src/plugins/trigger/trigger-command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index a97c73a52..f41fe2d2f 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -1193,7 +1193,8 @@ trigger_command_init () " print: buffer, tags, message, strip colors\n" " command: command (required), description, arguments, " "description of arguments, completion (all arguments except command " - "are evaluated, see /help eval)\n" + "are evaluated, \"${tg_trigger_name}\" is replaced by the trigger " + "name, see /help eval)\n" " command_run: command(s) (required)\n" " timer: interval (required), align on second, max calls\n" " config: name(s) of option (required)\n" |