From 1abdde6be5155e68edb9b11c2e6b7d0355e1401f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 12 Apr 2014 13:23:26 +0200 Subject: trigger: add variable "tg_tag_host" (from tag "host_xxx" in message) --- src/plugins/trigger/trigger-callback.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c index df3a86137..79782369d 100644 --- a/src/plugins/trigger/trigger-callback.c +++ b/src/plugins/trigger/trigger-callback.c @@ -118,6 +118,10 @@ trigger_callback_set_tags (struct t_gui_buffer *buffer, weechat_hashtable_set (extra_vars, "tg_tag_prefix_nick", tags[i] + 12); } + else if (strncmp (tags[i], "host_", 5) == 0) + { + weechat_hashtable_set (extra_vars, "tg_tag_host", tags[i] + 5); + } } return 1; -- cgit v1.2.3