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/it | |
parent | 2f37de9148302557748cd1cb8fe7c5dc0dc6d789 (diff) | |
download | weechat-4e9e5f265235b405bb7787eb4460364e7c930d38.zip |
api: add option "delay" in hashtable options of function command_options (issue #1327)
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 201ccaa1a..b54445c31 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -15024,6 +15024,7 @@ Argomenti: ** _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 Valori restituiti: @@ -15035,7 +15036,7 @@ Esempio in 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, @@ -15043,6 +15044,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); ---- |