diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-08-15 09:01:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-08-15 09:01:55 +0200 |
commit | d8c7b3fd5ef1a1ef4734a5599701bd0dc5d9e219 (patch) | |
tree | 643ff8f85ec74b9371855071d40871151ce172e7 /doc/it | |
parent | 3bdab1c5381cc190b7c5ebc396f2f5a6f90fdb87 (diff) | |
download | weechat-d8c7b3fd5ef1a1ef4734a5599701bd0dc5d9e219.zip |
doc: add more info about line, print and modifier functions for new lines (plugin API reference)
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index c96b4c45e..233064f21 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -9406,13 +9406,20 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", _WeeChat ≥ 2.3._ -Hook a line printed in a buffer. +Hook a line to be printed in a buffer. When a line is printed in a buffer, hooks are called in this order: -* <<_hook_line,hook line>> (this hook) -* <<_hook_modifier,hook modifier>>: <<hook_modifier_weechat_print,weechat_print>> -* <<_hook_print,hook print>> +* <<_hook_line,hook line>> (this hook): it can change the buffer, prefix, + message, tags, notify level, … (see below) +* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>": + it can change the prefix and message on a buffer with formatted content +* <<_hook_print,hook print>>: called when the line has been added in a buffer + with formatted content (nothing can be changed directly with this hook). + +[NOTE] +The "line" hook is the only one among these three hooks that can work on +buffers with free content. Prototipo: @@ -9672,7 +9679,13 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "") // TRANSLATION MISSING _Updated in 0.4.3, 1.0, 1.5._ -Hook su un messaggio stampato. +// TRANSLATION MISSING +Hook su un messaggio stampato. It is called when a line has been added in +a buffer with formatted content. + +// TRANSLATION MISSING +Fore more information on the hooks called when a line is printed, see +<<_hook_line,hook_line>>. Prototipo: @@ -11472,10 +11485,13 @@ List of modifiers used by WeeChat and plugins: Contenuto della riga di comando inviata al buffer (testo o comando). | Nuovo contenuto della riga di comando inviata al buffer. +// TRANSLATION MISSING | [[hook_modifier_weechat_print]] weechat_print | plugin + ";" + buffer_name + ";" + tags | Messaggio stampato. | - Nuovo messaggio stampato. + Nuovo messaggio stampato. + + Fore more information on the hooks called when a line is printed, see + <<_hook_line,hook_line>>. |=== [NOTE] |