diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index ba2a64a2e..056144f67 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -11280,27 +11280,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # example def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 9e225d1e5..d77dbc93c 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -11499,27 +11499,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # exemple def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index cfd7ad09e..5e00c3750 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -11703,27 +11703,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # esempio def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index ee11bce3d..8c0ee1459 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -11427,27 +11427,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # 例 def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 2761714ab..d56414161 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -10988,27 +10988,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # пример def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK diff --git a/src/plugins/python/weechat.pyi b/src/plugins/python/weechat.pyi index b190eb8f0..7f3a6e7c3 100644 --- a/src/plugins/python/weechat.pyi +++ b/src/plugins/python/weechat.pyi @@ -1474,27 +1474,27 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc # example def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int: - if status == WEECHAT_HOOK_CONNECT_OK: + if status == weechat.WEECHAT_HOOK_CONNECT_OK: # ... - elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: + elif status == weechat.WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: # ... - elif status == WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: + elif status == weechat.WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: # ... - elif status == WEECHAT_HOOK_CONNECT_PROXY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_PROXY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_MEMORY_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_MEMORY_ERROR: # ... - elif status == WEECHAT_HOOK_CONNECT_TIMEOUT: + elif status == weechat.WEECHAT_HOOK_CONNECT_TIMEOUT: # ... - elif status == WEECHAT_HOOK_CONNECT_SOCKET_ERROR: + elif status == weechat.WEECHAT_HOOK_CONNECT_SOCKET_ERROR: # ... return weechat.WEECHAT_RC_OK