summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-04-18 08:05:46 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-04-18 08:05:46 +0200
commitc72fa72aeff0c3dc814d678e4e0aeb40781dedcd (patch)
tree3608f7ad2c40c419491bf16a2e004ad13228c7e4 /doc/it
parent81a8119a08be7fe934b9d66dc73db93cf98fe0ca (diff)
downloadweechat-c72fa72aeff0c3dc814d678e4e0aeb40781dedcd.zip
doc: fix arguments sent to callback of hook_command in plugin API reference
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.txt19
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index c696fad67..1141e35ec 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -6574,16 +6574,21 @@ struct t_hook *my_command_hook =
----------------------------------------
Ad esempio, se il comando chiamato รจ `/comando abc def ghi`, allora
-argv e argv_eol contengono i seguenti valori:
+'argv' e 'argv_eol' contengono i seguenti valori:
* 'argv':
-** 'argv[0]' == "abc"
-** 'argv[1]' == "def"
-** 'argv[2]' == "ghi"
+** 'argv[0]' == "/command"
+** 'argv[1]' == "abc"
+** 'argv[2]' == "def"
+** 'argv[3]' == "ghi"
* 'argv_eol':
-** 'argv_eol[0]' == "abc def ghi"
-** 'argv_eol[1]' == "def ghi"
-** 'argv_eol[2]' == "ghi"
+** 'argv_eol[0]' == "/command abc def ghi"
+** 'argv_eol[1]' == "abc def ghi"
+** 'argv_eol[2]' == "def ghi"
+** 'argv_eol[3]' == "ghi"
+
+// TRANSLATION MISSING
+For scripts, 'args' has value "abc def ghi".
Script (Python):