aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slack/config.py4
-rw-r--r--slack/weechat_config.py2
-rw-r--r--tests/conftest.py2
3 files changed, 4 insertions, 4 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(
diff --git a/slack/weechat_config.py b/slack/weechat_config.py
index 9db9625..78b36a1 100644
--- a/slack/weechat_config.py
+++ b/slack/weechat_config.py
@@ -164,7 +164,7 @@ class WeeChatOption(Generic[WeeChatOptionType]):
value = None
- if shared.weechat_version < 0x3050000:
+ if shared.weechat_version < 0x03050000:
default_value = str(default_value)
value = default_value
diff --git a/tests/conftest.py b/tests/conftest.py
index be112d8..d69a6c5 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -24,5 +24,5 @@ def import_stub(stubs_path: str, module_name: str):
import_stub("typings", "weechat")
-shared.weechat_version = 0x3080000
+shared.weechat_version = 0x03080000
shared.weechat_callbacks = {}