From 2f4799d51a3c8b91c069a241430206574434a2ba Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 8 Oct 2022 17:51:43 +0200 Subject: 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. --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wee_slack.py') 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 ), ) -- cgit