diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt index 7373aa751..c6c472130 100644 --- a/doc/de/weechat_user.de.txt +++ b/doc/de/weechat_user.de.txt @@ -3284,6 +3284,8 @@ Variablen welche gesetzt werden, aufgrund der Nutzung von Tags in einer Nachrich | tg_tags_count | string | Anzahl an Tags der Nachricht | tg_tag_nick | string | Nick (extrahiert aus Tag "nick_xxx") | tg_tag_prefix_nick | string | Nickfarbe für Präfix (extrahier aus Tag "prefix_nick_ccc") +// TRANSLATION MISSING +| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx") | tg_tag_notify | string | Benachrichtigungsstufe ('none', 'message', 'private', 'highlight') | tg_notify | string | Benachrichtigungsstufe, falls von 'none' abweichend | tg_msg_pv | string | "1" für eine private Nachricht, andernfalls "0" diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index a7324121b..edad06aa5 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -3208,6 +3208,7 @@ too): | tg_tags_count | string | Number of tags in message | tg_tag_nick | string | Nick (from tag "nick_xxx") | tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc") +| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx") | tg_tag_notify | string | Notify level ('none', 'message', 'private', 'highlight') | tg_notify | string | Notify level, if different from 'none' | tg_msg_pv | string | "1" for a private message, otherwise "0" diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt index dc719ec68..934ae6f14 100644 --- a/doc/fr/weechat_user.fr.txt +++ b/doc/fr/weechat_user.fr.txt @@ -3314,6 +3314,7 @@ pour le modificateur 'weechat_print') : | tg_tags_count | chaîne | Nombre d'étiquettes dans le message | tg_tag_nick | chaîne | Pseudo (depuis l'étiquette "nick_xxx") | tg_tag_prefix_nick | chaîne | Couleur du pseudo dans le préfixe (depuis l'étiquette "prefix_nick_ccc") +| tg_tag_host | chaîne | Nom d'utilisateur et hôte, format: utilisateur@hôte (depuis l'étiquette "host_xxx") | tg_tag_notify | chaîne | Niveau de notification ('none', 'message', 'private', 'highlight') | tg_notify | chaîne | Niveau de notification, si différent de 'none' | tg_msg_pv | chaîne | "1" pour un message privé, sinon "0" diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt index f028238f9..45461707c 100644 --- a/doc/it/weechat_user.it.txt +++ b/doc/it/weechat_user.it.txt @@ -3341,6 +3341,8 @@ too): | tg_tags_count | string | Number of tags in message | tg_tag_nick | string | Nick (from tag "nick_xxx") | tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc") +// TRANSLATION MISSING +| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx") | tg_tag_notify | string | Notify level ('none', 'message', 'private', 'highlight') | tg_notify | string | Notify level, if different from 'none' | tg_msg_pv | string | "1" for a private message, otherwise "0" diff --git a/doc/ja/weechat_user.ja.txt b/doc/ja/weechat_user.ja.txt index 4f137d044..567551d39 100644 --- a/doc/ja/weechat_user.ja.txt +++ b/doc/ja/weechat_user.ja.txt @@ -3205,6 +3205,8 @@ string/string) が含まれています。 | tg_tags_count | string | メッセージのタグの個数 | tg_tag_nick | string | ニックネーム ("nick_xxx" タグから) | tg_tag_prefix_nick | string | プレフィックスで使うニックネームの色 ("prefix_nick_ccc" タグから) +// TRANSLATION MISSING +| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx") | tg_tag_notify | string | 通知レベル ('none'、'message'、'private'、'highlight') | tg_notify | string | 通知レベルが 'none' 以外の場合、その通知レベル | tg_msg_pv | string | プライベートメッセージの場合 "1"、それ以外は "0" diff --git a/doc/pl/weechat_user.pl.txt b/doc/pl/weechat_user.pl.txt index 6ae2fa522..1cff272c5 100644 --- a/doc/pl/weechat_user.pl.txt +++ b/doc/pl/weechat_user.pl.txt @@ -3240,6 +3240,8 @@ too): | tg_tags_count | string | Number of tags in message | tg_tag_nick | string | Nick (from tag "nick_xxx") | tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc") +// TRANSLATION MISSING +| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx") | tg_tag_notify | string | Notify level ('none', 'message', 'private', 'highlight') | tg_notify | string | Notify level, if different from 'none' | tg_msg_pv | string | "1" for a private message, otherwise "0" 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;