1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

trigger: add variable "tg_tag_host" (from tag "host_xxx" in message)

This commit is contained in:
Sébastien Helleu
2014-04-12 13:23:26 +02:00
parent c1cce9f1c3
commit 1abdde6be5
7 changed files with 14 additions and 0 deletions
+4
View File
@@ -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;