diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:33:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:33:01 +0200 |
commit | c1a9ab6731d59d7406e0290efc7f8e4a7ee01cdf (patch) | |
tree | c54d2e82abea2bd24535f162440dcbc8f38c8aa3 /doc/ja/weechat_plugin_api.ja.asciidoc | |
parent | c40137c48efc71d747e1ccc638a52c646dd7f5f9 (diff) | |
download | weechat-c1a9ab6731d59d7406e0290efc7f8e4a7ee01cdf.zip |
doc: remove comments in example of function hook_command (plugin API reference)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 1ca0ec6e7..f7ec2fd44 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -7169,27 +7169,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); ---- 例えば、コマンドが `/command abc def ghi` |