diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 19 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.asciidoc | 21 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 22 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 20 |
4 files changed, 47 insertions, 35 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index c4a87d81a..5d7ecc68d 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -8834,7 +8834,7 @@ weechat.hook_signal_send("python_script_remove", WEECHAT_HOOK_SIGNAL_STRING, [[signal_irc_input_send]] ===== Signal irc_input_send -_WeeChat ≥ 0.3.4._ +_WeeChat ≥ 0.3.4, updated in 1.5._ The signal "irc_input_send" can be sent to simulate input in an irc buffer (server, channel or private). @@ -8845,9 +8845,12 @@ Argument is a string with following format: * semicolon * channel name (optional) * semicolon -* flags used when sending message (optional, default is 1): -** '1': queue with high priority (like user messages) -** '2': queue with low priority (like messages automatically sent by WeeChat) +* comma-separated list of options (optional): +** 'priority_high': queue with high priority (like user messages); this is the + default priority +** 'priority_low': queue with low priority (like messages automatically sent by + WeeChat) +** 'user_message': force user message (don't execute a command) * semicolon * comma-separated list of tags used when sending message (optional) * semicolon @@ -8859,11 +8862,11 @@ C examples: ---- /* say "Hello!" on freenode server, #weechat channel */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!"); + "freenode;#weechat;priority_high,user_message;;Hello!"); /* send command "/whois FlashCode" on freenode server, with low priority */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "freenode;;priority_low;;/whois FlashCode"); ---- Script (Python): @@ -8872,11 +8875,11 @@ Script (Python): ---- # say "Hello!" on freenode server, #weechat channel weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!") + "freenode;#weechat;priority_high,user_message;;Hello!") # send command "/whois FlashCode" on freenode server, with low priority weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "freenode;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index 2898dbc2e..ff5ca9fa4 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -8991,7 +8991,7 @@ weechat.hook_signal_send("python_script_remove", WEECHAT_HOOK_SIGNAL_STRING, [[signal_irc_input_send]] ===== Signal irc_input_send -_WeeChat ≥ 0.3.4._ +_WeeChat ≥ 0.3.4, mis à jour dans la 1.5._ Le signal "irc_input_send" peut être envoyé pour simuler une entrée de texte dans un tampon irc (serveur, canal ou privé). @@ -9002,11 +9002,12 @@ Le paramètre est une chaîne avec le format suivant : * point-virgule * nom de canal (optionnel) * point-virgule -* drapeaux utilisés lors de l'envoi du message (optionnel, 1 par - défaut) : -** '1' : file d'attente avec haute priorité (comme les messages utilisateur) -** '2' : file d'attente avec basse priorité (comme les messages envoyés - automatiquement par WeeChat) +* liste d'options séparées par des virgules (optionnel) : +** 'priority_high' : file d'attente avec haute priorité (comme les messages + utilisateur) ; c'est la priorité par défaut +** 'priority_low' : file d'attente avec basse priorité (comme les messages + envoyés automatiquement par WeeChat) +** 'user_message' : forcer un message utilisateur (ne pas exécuter de commande) * point-virgule * liste d'étiquettes (séparées par des virgules) utilisées lors de l'envoi du message (optionnel) @@ -9019,11 +9020,11 @@ Exemples en C : ---- /* dis "Bonjour !" sur le serveur freenode, canal #weechat */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Bonjour !"); + "freenode;#weechat;priority_high,user_message;;Bonjour !"); /* envoie la commande "/whois FlashCode" sur le canal freenode, en basse priorité */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "freenode;;priority_low;;/whois FlashCode"); ---- Script (Python) : @@ -9032,11 +9033,11 @@ Script (Python) : ---- # dis "Bonjour !" sur le serveur freenode, canal #weechat weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Bonjour !") + "freenode;#weechat;priority_high,user_message;;Bonjour !") # envoie la commande "/whois FlashCode" sur le canal freenode, en basse priorité weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "freenode;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index af24643fd..134171f1a 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -9115,7 +9115,8 @@ weechat.hook_signal_send("python_script_remove", WEECHAT_HOOK_SIGNAL_STRING, [[signal_irc_input_send]] ===== Signal irc_input_send -_WeeChat ≥ 0.3.4._ +// TRANSLATION MISSING +_WeeChat ≥ 0.3.4, updated in 1.5._ Il segnale "irc_input_send" può essere inviato per simulare input in un buffer irc (server, canale o privato). @@ -9126,10 +9127,13 @@ L'argomento è una stringa con il seguente formato: * punto e virgola * nome canale (opzionale) * punto e virgola -* flag usate per l'invio del messaggio (opzionale, la predefinita è 1): -** '1': coda con la priorità maggiore (come i messaggi utente) -** '2': coda con la priorità minore (come i messaggi inviati automaticamente - da WeeChat) +// TRANSLATION MISSING +* comma-separated list of options (optional): +** 'priority_high': queue with high priority (like user messages); this is the + default priority +** 'priority_low': queue with low priority (like messages automatically sent by + WeeChat) +** 'user_message': force user message (don't execute a command) * punto e virgola * elenco separato da virgole di tag usate per l'invio di un messaggio (opzionale) @@ -9142,11 +9146,11 @@ Esempi in C: ---- /* dice "Hello!" sul server freenode, canale #weechat */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!"); + "freenode;#weechat;priority_high,user_message;;Hello!"); /* invia il comando "/whois FlashCode" sul server freenode, con priorità minore */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "freenode;;priority_low;;/whois FlashCode"); ---- Script (Python): @@ -9155,11 +9159,11 @@ Script (Python): ---- # dice "Hello!" sul server freenode server, canale #weechat weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!") + "freenode;#weechat;priority_high,user_message;;Hello!") # invia il comando "/whois FlashCode" sul server freenode, con priorità minore weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "freenode;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index e82504c90..a66636629 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -8833,7 +8833,7 @@ weechat.hook_signal_send("python_script_remove", WEECHAT_HOOK_SIGNAL_STRING, [[signal_irc_input_send]] ===== irc_input_send シグナル -_WeeChat バージョン 0.3.4 以上で利用可。_ +_WeeChat バージョン 0.3.4 以上で利用可。バージョン 1.5 で更新。_ irc バッファ(サーバ、チャンネル、プライベート) への入力をシミュレートするにはシグナル "irc_input_send" を送信してください。 @@ -8844,9 +8844,13 @@ irc バッファ(サーバ、チャンネル、プライベート) * セミコロン * チャンネル名 (任意) * セミコロン -* メッセージを送信する際に使うフラグ (任意、デフォルトは 1): -** '1': 高い優先度を持つキュー (ユーザメッセージなどと同等) -** '2': 低い優先度を持つキュー (WeeChat が自動的に送信するメッセージと同等) +// TRANSLATION MISSING +* comma-separated list of options (optional): +** 'priority_high': queue with high priority (like user messages); this is the + default priority +** 'priority_low': queue with low priority (like messages automatically sent by + WeeChat) +** 'user_message': force user message (don't execute a command) * セミコロン * メッセージを送信する際に使うタグのコンマ区切りリスト (任意) * セミコロン @@ -8858,11 +8862,11 @@ C 言語での使用例: ---- /* say "Hello!" on freenode server, #weechat channel */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!"); + "freenode;#weechat;priority_high,user_message;;Hello!"); /* send command "/whois FlashCode" on freenode server, with low priority */ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode"); + "freenode;;priority_low;;/whois FlashCode"); ---- スクリプト (Python) での使用例: @@ -8871,11 +8875,11 @@ weechat_hook_signal_send ("irc_input_send", WEECHAT_HOOK_SIGNAL_STRING, ---- # say "Hello!" on freenode server, #weechat channel weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;#weechat;1;;Hello!") + "freenode;#weechat;priority_high,user_message;;Hello!") # send command "/whois FlashCode" on freenode server, with low priority weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, - "freenode;;2;;/whois FlashCode") + "freenode;;priority_low;;/whois FlashCode") ---- ==== hook_hsignal |