1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

doc/user: clarify what is ${nick} in trigger IRC signal data

This commit is contained in:
Sébastien Helleu
2024-03-11 07:20:38 +01:00
parent 1ab62e37cb
commit 34e99987bf
7 changed files with 40 additions and 7 deletions
+6 -1
View File
@@ -5385,7 +5385,7 @@ und die Daten in einer Hashtable gesichert:
| server | string | Name des Server (Beispiel: "libera").
| tags | string | Tags in Nachricht (findet selten Verwendung).
| message_without_tags | string | Nachricht ohne Tags.
| nick | string | Nick.
| nick | string | Nick. ^(1)^
| host | string | Hostname.
| command | string | IRC Befehl (Beispiel: "PRIVMSG", "NOTICE", ...).
| channel | string | IRC Channel.
@@ -5397,6 +5397,11 @@ und die Daten in einer Hashtable gesichert:
| pos_text | string | Index von _text_ innerhalb einer Nachricht ("-1" falls _text_ nicht gefunden wird).
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
Sofern es sich bei den Daten um einen Pointer handelt, kann die Variable `+tg_signal_data+`
wie im folgenden Beispiel genutzt werden um den Inhalt von hdata zu lesen (im Beispiel
wird der Pointer eines Buffer verwendet):
+5 -1
View File
@@ -5275,7 +5275,7 @@ is added in hashtable:
| server | string | Name of server (example: "libera").
| tags | string | Tags in message (rarely used).
| message_without_tags | string | Message without tags.
| nick | string | Nick.
| nick | string | Nick. ^(1)^
| host | string | Hostname.
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
| channel | string | IRC channel.
@@ -5287,6 +5287,10 @@ is added in hashtable:
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|===
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
When the data is a pointer, the variable `+tg_signal_data+` can be used like this
to read a hdata property (in this example this is a pointer on a buffer):
+5 -1
View File
@@ -5438,7 +5438,7 @@ suivantes sont ajoutées dans la table de hachage :
| server | chaîne | Nom du serveur (exemple : "libera").
| tags | chaîne | Étiquettes dans le message (rarement utilisées).
| message_without_tags | chaîne | Message sans les étiquettes.
| nick | chaîne | Pseudo.
| nick | chaîne | Pseudo. ^(1)^
| host | chaîne | Nom d'hôte.
| command | chaîne | Commande IRC (exemple : "PRIVMSG", "NOTICE", ...).
| channel | chaîne | Canal IRC.
@@ -5450,6 +5450,10 @@ suivantes sont ajoutées dans la table de hachage :
| pos_text | chaîne | L'index de _text_ dans le message ("-1" si _text_ n'a pas été trouvé).
|===
[NOTE]
^(1)^ Le pseudo est l'expéditeur du message. +
Votre propre pseudo sur le serveur est `${irc_server.nick}`.
Lorsque la donnée est un pointeur, la variable `+tg_signal_data+` peut être
utilisée comme ceci pour lire une propriété hdata (dans cet exemple il s'agit
d'un pointeur sur un tampon) :
+6 -1
View File
@@ -5677,7 +5677,7 @@ is added in hashtable:
| server | string | Name of server (example: "libera").
| tags | string | Tags in message (rarely used).
| message_without_tags | string | Message without tags.
| nick | string | Nick.
| nick | string | Nick. ^(1)^
| host | string | Hostname.
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
| channel | string | IRC channel.
@@ -5689,6 +5689,11 @@ is added in hashtable:
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
When the data is a pointer, the variable `+tg_signal_data+` can be used like this
to read a hdata property (in this example this is a pointer on a buffer):
+6 -1
View File
@@ -5518,7 +5518,7 @@ All callbacks set following variables in hashtable:
| server | string | サーバの名前 (例: "libera")
| tags | string | メッセージ内のタグ (使われることはまれです)
| message_without_tags | string | タグを含まないメッセージ
| nick | string | ニックネーム
| nick | string | ニックネーム ^(1)^
| host | string | ホスト名
| command | string | IRC コマンド (例: "PRIVMSG"、"NOTICE"、...)
| channel | string | IRC チャンネル
@@ -5530,6 +5530,11 @@ All callbacks set following variables in hashtable:
| pos_text | string | メッセージ内における _text_ のインデックス (_text_ が見つからない場合 "-1")
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
データがポインタの場合、hdata の属性を読むために変数 `+tg_signal_data+`
を以下のようにして使うことが可能です (以下の例では、バッファのポインタとして使っています):
+6 -1
View File
@@ -5331,7 +5331,7 @@ są dodawane do tablicy hashy:
| server | ciąg | Nazwa serwera (przykład: "libera").
| tags | ciąg | Tagi w wiadomości (rzadko używane).
| message_without_tags | ciąg | Wiadomość bez tagów.
| nick | ciąg | Nick.
| nick | ciąg | Nick. ^(1)^
| host | ciąg | Nazwa hosta.
| command | ciąg | Komendy IRC (na przykład: "PRIVMSG", "NOTICE", ...).
| channel | ciąg | Kanał IRC.
@@ -5343,6 +5343,11 @@ są dodawane do tablicy hashy:
| pos_text | ciąg | Indeks _text_ w wiadomości ("-1" jeśli _text_ nie został znaleziony).
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
Kiedy dane są wskaźnikiem, zmienna `+tg_signal_data+` może zostać użyta do
odczytania pola w hdata (w tym przypadku jest to wskaźnik na bufor):
+6 -1
View File
@@ -5009,7 +5009,7 @@ y/${chars:a-z}${chars:A-Z}/${chars:b-z}a${chars:B-Z}A/
| server | стринг | Име сервера (пример: „libera”).
| tags | стринг | Ознаке у поруци (ретко се користе).
| message_without_tags | стринг | Порука без ознака.
| nick | стринг | Надимак.
| nick | стринг | Надимак. ^(1)^
| host | стринг | Име хоста.
| command | стринг | IRC команда (пример: „PRIVMSG”, „NOTICE”, ...).
| channel | стринг | IRC канал.
@@ -5021,6 +5021,11 @@ y/${chars:a-z}${chars:A-Z}/${chars:b-z}a${chars:B-Z}A/
| pos_text | стринг | Индекс _text_ у поруци („-1” ако се _text_ не пронађе).
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.
Када су подаци показивач, за читање hdata особине може да се употреби променљива `+tg_signal_data+` на следећи начин (у овом примеру је то показивач на бафер):
----