aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-07-12 17:40:25 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2017-07-12 17:40:25 +0200
commit9ac0622bfbec43ce683acf8fbb5d4963dc907989 (patch)
tree8304da2296c480aa0b27cbfd1be93a83fb1d0750
parent8343a4e7cf8f40fa7b556644503604e590cbc869 (diff)
downloadwee-slack-9ac0622bfbec43ce683acf8fbb5d4963dc907989.tar.gz
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.
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
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: