core: add note about function hook_print in version 1.0 (release notes)

v2.8-utf8proc
Sébastien Helleu 2017-08-13 09:35:19 +02:00
parent 4bea917263
commit 71e59b0988
1 changed files with 10 additions and 2 deletions

View File

@ -23,8 +23,8 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v2.0_hook_fd]]
=== Function hook_fd
The argument _fd_ sent to the callback of _hook_fd_ is now an integer
(it was a string in older releases). +
In scripts, the argument _fd_ sent to the callback of _hook_fd_ is now
an integer (it was a string in older releases). +
To be compatible with all versions, it is recommended to convert the argument
to integer before using it, for example in Python: `int(fd)`.
@ -547,6 +547,14 @@ the new default key is kbd:[Alt+l].
Use command `/key missing` to add the key or `/key listdiff` to see differences
between your current keys and WeeChat default keys.
[[v1.0_hook_fd]]
=== Function hook_print
In scripts, the arguments _displayed_ and _highlight_ sent to the callback of
_hook_print_ are now integers (they were strings in older releases). +
To be compatible with all versions, it is recommended to convert the argument
to integer before testing it, for example in Python: `if int(highlight):`.
[[v0.4.3]]
== Version 0.4.3 (2014-02-09)