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/en | |
parent | f74aa095735b0f9057d5dbf633df85917ebf82cb (diff) | |
download | weechat-0509f190486f161c1fcf5619127a750fec52999e.zip |
doc: update examples of function hook_command_run (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 823f80252..4d945e3e0 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -7179,8 +7179,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; } @@ -7198,7 +7197,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # example 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", "") |