summaryrefslogtreecommitdiff
path: root/doc/ja/weechat_plugin_api.ja.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-03-05 10:59:37 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-03-05 10:59:37 +0100
commita4d1dfa8f436366dbe6544ae7480ba8986f81a05 (patch)
treec26c0f6b9ae2aaa52eefb6aaeec0a517ac34e2f3 /doc/ja/weechat_plugin_api.ja.asciidoc
parent28737c9de173a24d5911501d56b612df1312d5bb (diff)
downloadweechat-a4d1dfa8f436366dbe6544ae7480ba8986f81a05.zip
relay: do not execute any command received from an irc relay client (closes #699)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc20
1 files changed, 12 insertions, 8 deletions
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