summaryrefslogtreecommitdiff
path: root/src/plugins/trigger
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/trigger')
-rw-r--r--src/plugins/trigger/trigger-callback.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index 88454ac50..d77f15a7d 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -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);