summaryrefslogtreecommitdiff
path: root/doc/fr/weechat_plugin_api.fr.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-03-28 13:33:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-03-28 13:33:01 +0200
commitc1a9ab6731d59d7406e0290efc7f8e4a7ee01cdf (patch)
treec54d2e82abea2bd24535f162440dcbc8f38c8aa3 /doc/fr/weechat_plugin_api.fr.asciidoc
parentc40137c48efc71d747e1ccc638a52c646dd7f5f9 (diff)
downloadweechat-c1a9ab6731d59d7406e0290efc7f8e4a7ee01cdf.zip
doc: remove comments in example of function hook_command (plugin API reference)
Diffstat (limited to 'doc/fr/weechat_plugin_api.fr.asciidoc')
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc12
1 files changed, 2 insertions, 10 deletions
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index 1df105e3a..3314a075d 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -7290,27 +7290,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* cet exemple s'inspire de la commande /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* nom de la commande */
- "monfiltre",
- /* description */
+ weechat_hook_command ("monfiltre",
"description de monfiltre",
- /* paramètres */
"[list] | [enable|disable|toggle [nom]] | "
"[add nom extension.tampon tags regex] | "
"[del nom|-all]",
- /* description des paramètres */
"description des paramètres...",
- /* complétion */
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
- /* callback */
- &my_command_cb,
- /* callback_data */
- NULL, NULL);
+ &my_command_cb, NULL, NULL);
----
Par exemple, si la commande appelée est `/command abc def ghi`, alors 'argv' et