diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-12 13:23:26 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-12 13:23:26 +0200 |
commit | 1abdde6be5155e68edb9b11c2e6b7d0355e1401f (patch) | |
tree | 97f93f72a91f18316093ef8078d77e679c55d75e /src | |
parent | c1cce9f1c31598e8430d1d57ca8e3ef95e22e31e (diff) | |
download | weechat-1abdde6be5155e68edb9b11c2e6b7d0355e1401f.zip |
trigger: add variable "tg_tag_host" (from tag "host_xxx" in message)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/trigger/trigger-callback.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |