summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc61
-rw-r--r--doc/ja/weechat_scripting.ja.adoc5
2 files changed, 64 insertions, 2 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index a5d56088f..77f5c587f 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -14335,6 +14335,67 @@ weechat.command(buffer, command)
rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois FlashCode")
----
+==== command_options
+
+_WeeChat ≥ 2.5._
+
+// TRANSLATION MISSING
+Execute a command or send text to buffer with options.
+
+プロトタイプ:
+
+[source,C]
+----
+int weechat_command_options (struct t_gui_buffer *buffer, const char *command,
+ struct t_hashtable *options);
+----
+
+引数:
+
+* _buffer_: バッファへのポインタ
+ (コマンドは指定したバッファで実行されます、現在のバッファで実行するには NULL を指定してください)
+* _command_: 実行するコマンド ("/"
+ で始まっている場合)、またはバッファに送信するテキスト
+// TRANSLATION MISSING
+* _options_: a hashtable with some options (keys and values must be string)
+ (can be NULL):
+** _commands_: a comma-separated list of commands allowed to be executed during
+ this call; see function <<_string_match_list,string_match_list>> for the
+ format
+
+戻り値:
+
+* _WEECHAT_RC_OK_ 成功した場合
+* _WEECHAT_RC_ERROR_ エラーが起きた場合
+
+C 言語での使用例:
+
+// TRANSLATION MISSING
+[source,C]
+----
+/* allow any command except /exec */
+int rc;
+struct t_hashtable *options = weechat_hashtable_new (8,
+ WEECHAT_HASHTABLE_STRING,
+ WEECHAT_HASHTABLE_STRING,
+ NULL,
+ NULL);
+weechat_hashtable_set (options, "commands", "*,!exec");
+rc = weechat_command_options (NULL, "/some_command arguments", options);
+----
+
+スクリプト (Python) での使用例:
+
+// TRANSLATION MISSING
+[source,python]
+----
+# プロトタイプ
+weechat.command_options(buffer, command, options)
+
+# example: allow any command except /exec
+rc = weechat.command("", "/some_command arguments", {"commands": "*,!exec"})
+----
+
[[network]]
=== ネットワーク
diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc
index f37cc2595..9fba9374e 100644
--- a/doc/ja/weechat_scripting.ja.adoc
+++ b/doc/ja/weechat_scripting.ja.adoc
@@ -570,7 +570,7 @@ link:weechat_plugin_api.ja.html[WeeChat プラグイン API リファレンス]
window_get_pointer +
window_set_title
-| ニックネームリスト |
+| ニックネームリスト |
nicklist_add_group +
nicklist_search_group +
nicklist_add_nick +
@@ -599,7 +599,8 @@ link:weechat_plugin_api.ja.html[WeeChat プラグイン API リファレンス]
bar_remove
| コマンド |
- command
+ command +
+ command_options
| インフォ |
info_get +