1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

api: change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripts)

This commit is contained in:
Sébastien Helleu
2017-08-13 10:40:01 +02:00
parent bf0df282a2
commit bfef8da84c
13 changed files with 70 additions and 67 deletions
+8
View File
@@ -20,6 +20,14 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v2.0]]
== Version 2.0 (under dev)
[[v2.0_hook_connect]]
=== Function hook_connect
In scripts, the arguments _status_, _gnutls_rc_ and _sock_ sent to the callback
of _hook_connect_ 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 using it, for example in Python: `int(sock)`.
[[v2.0_hook_fd]]
=== Function hook_fd