1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 03:46:39 +02:00

api: add constants for IPv6 and allow force of IPv6 in function hook_connect (issue #2164)

This commit is contained in:
Sébastien Helleu
2024-07-27 10:01:02 +02:00
parent ab2bcbac4e
commit e051af0376
11 changed files with 153 additions and 67 deletions
+3
View File
@@ -70,6 +70,9 @@ def test_constants():
check(weechat.WEECHAT_HOTLIST_HIGHLIGHT == '3')
check(weechat.WEECHAT_HOOK_PROCESS_RUNNING == -1)
check(weechat.WEECHAT_HOOK_PROCESS_ERROR == -2)
check(weechat.WEECHAT_HOOK_CONNECT_IPV6_DISABLE == 0)
check(weechat.WEECHAT_HOOK_CONNECT_IPV6_AUTO == 1)
check(weechat.WEECHAT_HOOK_CONNECT_IPV6_FORCE == 2)
check(weechat.WEECHAT_HOOK_CONNECT_OK == 0)
check(weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND == 1)
check(weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND == 2)