summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-28 22:05:42 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-03-28 22:07:04 +0100
commit4e9e5f265235b405bb7787eb4460364e7c930d38 (patch)
treeacf532754b271ba0b5e42f2594ec2db31ce24a94 /doc
parent2f37de9148302557748cd1cb8fe7c5dc0dc6d789 (diff)
downloadweechat-4e9e5f265235b405bb7787eb4460364e7c930d38.zip
api: add option "delay" in hashtable options of function command_options (issue #1327)
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc4
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc4
-rw-r--r--doc/it/weechat_plugin_api.it.adoc4
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc4
4 files changed, 12 insertions, 4 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index dcee3891f..0f67f4e99 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -14443,6 +14443,7 @@ Arguments:
** _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
Return value:
@@ -14453,7 +14454,7 @@ C example:
[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,
@@ -14461,6 +14462,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);
----
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 6d73e0f06..16aca160f 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -14758,6 +14758,7 @@ Paramètres :
** _commands_ : une liste de commandes autorisées pendant l'appel, séparées par
des virgules ; voir la fonction <<_string_match_list,string_match_list>>
pour le format
+** _delay_ : délai pour exécuter la commande, en millisecondes
Valeur de retour :
@@ -14768,7 +14769,7 @@ Exemple en C :
[source,C]
----
-/* autoriser toute commande sauf /exec */
+/* autoriser toute commande sauf /exec, lancer la commande dans 2 secondes */
int rc;
struct t_hashtable *options = weechat_hashtable_new (8,
WEECHAT_HASHTABLE_STRING,
@@ -14776,6 +14777,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, "/une_commande paramètres", options);
----
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);
----
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);
----