diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-08 17:51:43 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-08 17:54:57 +0200 |
commit | 2f4799d51a3c8b91c069a241430206574434a2ba (patch) | |
tree | 2ade0f9917e261c140b6dfcc8e708a0c61ac5dc6 | |
parent | 542155704b737caddf098a7e42f630bfc61a5c2f (diff) | |
download | wee-slack-2f4799d51a3c8b91c069a241430206574434a2ba.tar.gz |
Update WeeChat version check to require >= 2.2
After moving the token in Slack API requests from a query string param
to an Authorization header in commit 2185a58 we require WeeChat >= 2.2
because that was the version which added support for setting HTTP
headers.
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index fd4eaba..16cddd0 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -7093,10 +7093,10 @@ if __name__ == "__main__": else w.completion_list_add ) - if weechat_version < 0x1030000: + if weechat_version < 0x2020000: w.prnt( "", - "\nERROR: Weechat version 1.3+ is required to use {}.\n\n".format( + "\nERROR: Weechat version 2.2+ is required to use {}.\n\n".format( SCRIPT_NAME ), ) |