summaryrefslogtreecommitdiff
path: root/ReleaseNotes.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-08-13 09:35:19 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-08-13 09:35:19 +0200
commit71e59b098823fd74f4b0d0c37f0dbd45b0d0d2d5 (patch)
tree11b77ed0012137a0c5b2e4f862b436cfb02626ac /ReleaseNotes.adoc
parent4bea917263b4294258182dcd253b90b94a5c7d67 (diff)
downloadweechat-71e59b098823fd74f4b0d0c37f0dbd45b0d0d2d5.zip
core: add note about function hook_print in version 1.0 (release notes)
Diffstat (limited to 'ReleaseNotes.adoc')
-rw-r--r--ReleaseNotes.adoc12
1 files changed, 10 insertions, 2 deletions
diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc
index aee087e87..d1a719983 100644
--- a/ReleaseNotes.adoc
+++ b/ReleaseNotes.adoc
@@ -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)