1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

trigger: allow creation of temporary variables with the regex

This commit is contained in:
Sébastien Helleu
2018-08-16 22:47:47 +02:00
parent 1a0087a7d7
commit 9105c3ba1f
8 changed files with 38 additions and 8 deletions
+3 -2
View File
@@ -277,9 +277,10 @@ trigger_callback_replace_regex (struct t_trigger *trigger,
{
weechat_printf_date_tags (trigger_buffer, 0, "no_trigger",
"\t regex %d (%s): %s",
i + 1, ptr_key, _("empty variable"));
i + 1, ptr_key, _("creating variable"));
}
continue;
weechat_hashtable_set (extra_vars, ptr_key, "");
ptr_value = weechat_hashtable_get (extra_vars, ptr_key);
}
weechat_hashtable_set (pointers, "regex", trigger->regex[i].regex);