diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-28 22:05:42 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-28 22:07:04 +0100 |
commit | 4e9e5f265235b405bb7787eb4460364e7c930d38 (patch) | |
tree | acf532754b271ba0b5e42f2594ec2db31ce24a94 /doc/ja/weechat_plugin_api.ja.adoc | |
parent | 2f37de9148302557748cd1cb8fe7c5dc0dc6d789 (diff) | |
download | weechat-4e9e5f265235b405bb7787eb4460364e7c930d38.zip |
api: add option "delay" in hashtable options of function command_options (issue #1327)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.adoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 4 |
1 files changed, 3 insertions, 1 deletions
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); ---- |