summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-01-05 10:52:26 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-01-05 10:52:26 +0100
commitb7c97d64ee5b7c5d21600622709aac84c10ad625 (patch)
treee248fc72913ec09146ca4a4a0d024d4d295197a9 /doc
parent7e7fe2b37d3bd7239b255a7c2589ea8d4eb51440 (diff)
downloadweechat-b7c97d64ee5b7c5d21600622709aac84c10ad625.zip
doc: add hashtable sent to callback for irc redirection in plugin API reference
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.txt11
-rw-r--r--doc/fr/weechat_plugin_api.fr.txt12
-rw-r--r--doc/it/weechat_plugin_api.it.txt13
3 files changed, 36 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index 2d74c15c3..40f2918e4 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -7688,6 +7688,17 @@ When complete answer to your command has been be received, a hsignal will be
send. This hsignal has name 'irc_redirection_xxx_yyy' where 'xxx' is the
'signal' and 'yyy' the 'pattern' used.
+Hashtable sent in hsignal has following content (key and values are strings):
+
+* 'output': output of command (messages are separated by "\n")
+* 'output_size': number of bytes in 'output' (as string)
+* 'error': error string (if an error occurred):
+** 'timeout': redirection stopped after timeout
+* 'server': internal server name
+* 'pattern': redirect pattern
+* 'signal': signal name
+* 'command': redirected command
+
C example:
[source,C]
diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt
index 3e4054ab4..3aafce46e 100644
--- a/doc/fr/weechat_plugin_api.fr.txt
+++ b/doc/fr/weechat_plugin_api.fr.txt
@@ -7802,6 +7802,18 @@ Lorsque la réponse complète à votre commande a été reçue, un hsignal est e
Ce hsignal a le nom 'irc_redirection_xxx_yyy' où 'xxx' est le 'signal' et 'yyy'
le 'pattern' utilisé.
+La hashtable envoyée dans le hsignal a le contenu suivant (les clés et valeurs
+sont des chaînes) :
+
+* 'output' : sortie de la commande (les messages sont séparés par "\n")
+* 'output_size' : nombre d'octets dans 'output' (sous forme de chaîne)
+* 'error' : chaîne d'erreur (si une erreur s'est produite) :
+** 'timeout' : redirection stoppée après le délai maximum dépassé
+* 'server' : nom interne du serveur
+* 'pattern' : modèle de redirection
+* 'signal' : nom du signal
+* 'command' : commande redirigée
+
Exemple en C :
[source,C]
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 7f7ba4bc3..3e93c21d6 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -7735,6 +7735,19 @@ Quando è stata ricevuta la risposta completa dal proprio comando, verrà
inviato un hsignal. Questo hsignal ha il nome 'irc_redirection_xxx_yyy' dove
'xxx' è il segnale e 'yyy' lo 'schema' usato.
+// TRANSLATION MISSING
+Hashtable sent in hsignal has following content (key and values are strings):
+
+// TRANSLATION MISSING
+* 'output': output of command (messages are separated by "\n")
+* 'output_size': number of bytes in 'output' (as string)
+* 'error': error string (if an error occurred):
+** 'timeout': redirection stopped after timeout
+* 'server': internal server name
+* 'pattern': redirect pattern
+* 'signal': signal name
+* 'command': redirected command
+
Esempio in C:
[source,C]