From 9ac0622bfbec43ce683acf8fbb5d4963dc907989 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Wed, 12 Jul 2017 17:40:25 +0200 Subject: Rename version variable to weechat_version This is going to be used another place in the script in the next commit, so set a more verbose name so it's not confused with the script version. --- 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 341cb5e..ad68d75 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3350,8 +3350,8 @@ if __name__ == "__main__": if w.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, SCRIPT_DESC, "script_unloaded", ""): - version = w.info_get("version_number", "") or 0 - if int(version) < 0x1030000: + weechat_version = w.info_get("version_number", "") or 0 + if int(weechat_version) < 0x1030000: w.prnt("", "\nERROR: Weechat version 1.3+ is required to use {}.\n\n".format(SCRIPT_NAME)) else: -- cgit