diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-13 10:40:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-13 10:40:01 +0200 |
commit | bfef8da84c685dea678c8aa2fcb6d5a570d7a7b2 (patch) | |
tree | 8c5064f94120fc7c5d700168c18bf00154c0b7ed /doc/ja | |
parent | bf0df282a2a33ccc4179f5819b7936f37a0ebc37 (diff) | |
download | weechat-bfef8da84c685dea678c8aa2fcb6d5a570d7a7b2.zip |
api: change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripts)
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index d013f56aa..70034ed5d 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -8808,7 +8808,8 @@ hook3 = weechat.hook_process_hashtable("sh", ==== hook_connect -_WeeChat バージョン 1.5 で更新。_ +// TRANSLATION MISSING +_Updated in 1.5, 2.0._ 接続をフックする (リモートホストへのバックグラウンド接続)。 @@ -8891,6 +8892,13 @@ struct t_hook *weechat_hook_connect (const char *proxy, * 新しいフックへのポインタ、エラーが起きた場合は NULL +// TRANSLATION MISSING +[IMPORTANT] +In scripts, with WeeChat ≥ 2.0, the callback arguments _status_, _gnutls_rc_ +and _sock_ are integers (with WeeChat ≤ 1.9, they were strings). + +To be compatible with all versions, it is recommended to convert the argument +to integer before using it, for example in Python: `int(sock)`. + C 言語での使用例: [source,C] |