diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-20 13:29:07 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 54f5307fc74c5f60314f09991a20b868b5837d07 (patch) | |
tree | 4d8aa3c3fe88de6cb9239bc5f687fc8f0072b69c /slack/config.py | |
parent | 2d72de0c88a3889182d40e306ebb1e5c9a38ef47 (diff) | |
download | wee-slack-54f5307fc74c5f60314f09991a20b868b5837d07.tar.gz |
Use eight digits for the WeeChat version
It's four parts with two digits each, so it's more consistent to use
eight digits even though the first is a zero.
Diffstat (limited to 'slack/config.py')
-rw-r--r-- | slack/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/config.py b/slack/config.py index 890d6be..723d4d3 100644 --- a/slack/config.py +++ b/slack/config.py @@ -222,7 +222,7 @@ def config_section_workspace_read_cb( return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR if value is None or ( - shared.weechat_version < 0x3080000 + shared.weechat_version < 0x03080000 and value == "" and option.weechat_type != "string" ): @@ -271,7 +271,7 @@ class SlackConfig: # See https://github.com/weechat/weechat/pull/1843 callback_write = ( get_callback_name(config_section_workspace_write_for_old_weechat_cb) - if shared.weechat_version < 0x3080000 + if shared.weechat_version < 0x03080000 else "" ) self._section_workspace = WeeChatSection( |