diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-17 08:13:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-17 08:13:55 +0100 |
commit | 0509f190486f161c1fcf5619127a750fec52999e (patch) | |
tree | 21b79d14ed1e97ee4c6263c16f7f4dd0c752e55f /doc/ja/weechat_plugin_api.ja.asciidoc | |
parent | f74aa095735b0f9057d5dbf633df85917ebf82cb (diff) | |
download | weechat-0509f190486f161c1fcf5619127a750fec52999e.zip |
doc: update examples of function hook_command_run (plugin API reference)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index e4fc9aa5f..f65211015 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -7178,8 +7178,7 @@ int my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - weechat_printf (NULL, - "You want to complete? I'm eating the completion ahah!"); + weechat_printf (NULL, "I'm eating the completion!"); return WEECHAT_RC_OK_EAT; } @@ -7197,7 +7196,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # 例 def my_command_run_cb(data, buffer, command): - weechat.prnt("", "You want to complete? I'm eating the completion, ahah!") + weechat.prnt("", "I'm eating the completion!") return weechat.WEECHAT_RC_OK_EAT hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") |