1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

trigger: add variable ${tg_hook_type} (closes #1765)

This commit is contained in:
Sébastien Helleu
2022-09-30 21:32:27 +02:00
parent 6bb4bed8bb
commit ae61137216
9 changed files with 16 additions and 0 deletions
+4
View File
@@ -144,6 +144,10 @@ trigger_callback_set_common_vars (struct t_trigger *trigger,
return;
weechat_hashtable_set (hashtable, "tg_trigger_name", trigger->name);
weechat_hashtable_set (
hashtable, "tg_hook_type",
trigger_hook_type_string[
weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])]);
}
/*