summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-12 13:23:26 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-12 13:23:26 +0200
commit1abdde6be5155e68edb9b11c2e6b7d0355e1401f (patch)
tree97f93f72a91f18316093ef8078d77e679c55d75e
parentc1cce9f1c31598e8430d1d57ca8e3ef95e22e31e (diff)
downloadweechat-1abdde6be5155e68edb9b11c2e6b7d0355e1401f.zip
trigger: add variable "tg_tag_host" (from tag "host_xxx" in message)
-rw-r--r--doc/de/weechat_user.de.txt2
-rw-r--r--doc/en/weechat_user.en.txt1
-rw-r--r--doc/fr/weechat_user.fr.txt1
-rw-r--r--doc/it/weechat_user.it.txt2
-rw-r--r--doc/ja/weechat_user.ja.txt2
-rw-r--r--doc/pl/weechat_user.pl.txt2
-rw-r--r--src/plugins/trigger/trigger-callback.c4
7 files changed, 14 insertions, 0 deletions
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;