aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-08 17:51:43 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2022-10-08 17:54:57 +0200
commit2f4799d51a3c8b91c069a241430206574434a2ba (patch)
tree2ade0f9917e261c140b6dfcc8e708a0c61ac5dc6 /wee_slack.py
parent542155704b737caddf098a7e42f630bfc61a5c2f (diff)
downloadwee-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.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
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
),
)