summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.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/en/weechat_plugin_api.en.asciidoc
parentc40137c48efc71d747e1ccc638a52c646dd7f5f9 (diff)
downloadweechat-c1a9ab6731d59d7406e0290efc7f8e4a7ee01cdf.zip
doc: remove comments in example of function hook_command (plugin API reference)
Diffstat (limited to 'doc/en/weechat_plugin_api.en.asciidoc')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc12
1 files changed, 2 insertions, 10 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index 68a3c3d41..4bf87734b 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -7163,27 +7163,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* this example is inspired by command /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* command name */
- "myfilter",
- /* description */
+ weechat_hook_command ("myfilter",
"description of myfilter",
- /* args */
"[list] | [enable|disable|toggle [name]] | "
"[add name plugin.buffer tags regex] | "
"[del name|-all]",
- /* args description */
"description of arguments...",
- /* completion */
"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);
----
For example, if command called is `/command abc def ghi`, then 'argv' and