From 4e9e5f265235b405bb7787eb4460364e7c930d38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= <flashcode@flashtux.org>
Date: Thu, 28 Mar 2019 22:05:42 +0100
Subject: api: add option "delay" in hashtable options of function
 command_options (issue #1327)

---
 doc/ja/weechat_plugin_api.ja.adoc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'doc/ja/weechat_plugin_api.ja.adoc')

diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 2871d8f5e..f2c11ed4d 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -14411,6 +14411,7 @@ int weechat_command_options (struct t_gui_buffer *buffer, const char *command,
 ** _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
+** _delay_: delay to execute command, in milliseconds
 
 戻り値:
 
@@ -14422,7 +14423,7 @@ C 言語での使用例:
 // TRANSLATION MISSING
 [source,C]
 ----
-/* allow any command except /exec */
+/* allow any command except /exec, run command in 2 seconds */
 int rc;
 struct t_hashtable *options = weechat_hashtable_new (8,
                                                      WEECHAT_HASHTABLE_STRING,
@@ -14430,6 +14431,7 @@ struct t_hashtable *options = weechat_hashtable_new (8,
                                                      NULL,
                                                      NULL);
 weechat_hashtable_set (options, "commands", "*,!exec");
+weechat_hashtable_set (options, "delay", "2000");
 rc = weechat_command_options (NULL, "/some_command arguments", options);
 ----
 
-- 
cgit v1.2.3

