Skip to content

Commit 7a7de5f

Browse files
committed
Add function hook_url for URL transfer
1 parent 0fe640a commit 7a7de5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
- [ ] Comment in script with name/pseudo, e-mail and license
3636
- [ ] Only English in code/comments
3737
- [ ] Pure WeeChat API used, no extra API
38-
- [ ] Function `hook_process` is used for any blocking call
38+
- [ ] Function `hook_url`, `hook_process` or `hook_process_hashtable` is used for any blocking call
3939
- [ ] For Python script: works with Python 3 (Python 2 support is optional)
4040
- [ ] Score 100 / 100 displayed by [weechat-script-lint](https://github.com/weechat/weechat-script-lint)
4141

Contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ New scripts are added with pull requests against master branch of this repositor
3838
- consider using [Semantic versioning ](https://semver.org/) (recommended, not mandatory); only digits and dots are allowed in version
3939
- use only English for code and comments
4040
- do **NOT** use an extra API between WeeChat and your script (like Ruby gem "WeeChat"), use the standard WeeChat API only
41-
- use function [hook_process](https://weechat.org/files/doc/stable/weechat_plugin_api.en.html#_hook_process) or [hook_process_hashtable](https://weechat.org/files/doc/stable/weechat_plugin_api.en.html#_hook_process_hashtable) if your script is doing something blocking (like fetching URL), to not block WeeChat
41+
- use function [hook_url](https://weechat.org/files/doc/stable/weechat_plugin_api.en.html#_hook_url) (WeeChat ≥ 4.1.0), [hook_process](https://weechat.org/files/doc/stable/weechat_plugin_api.en.html#_hook_process) or [hook_process_hashtable](https://weechat.org/files/doc/stable/weechat_plugin_api.en.html#_hook_process_hashtable) if your script is doing something blocking (like fetching URL), to not block WeeChat
4242
- make your Python script compatible with Python 3.x, the support of Python 2.x is now optional
4343
- use the official WeeChat URL: [https://weechat.org](https://weechat.org) (`https` and no `www.`) in any link to the WeeChat website.
4444

0 commit comments

Comments
 (0)