trigger: add variable "tg_tag_host" (from tag "host_xxx" in message)
This commit is contained in:
parent
c1cce9f1c3
commit
1abdde6be5
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user