1
0
mirror of https://github.com/gryf/weechat-replacer.git synced 2026-02-17 06:35:54 +01:00

Fix for crash regarding version checking.

This commit is contained in:
2025-01-29 18:22:46 +01:00
parent 99e4e12129
commit 1542e056ca
2 changed files with 15 additions and 32 deletions

View File

@@ -79,7 +79,7 @@ class Replacer(object):
# nothing found. so there is no replacement file. let's assume the
# right file path.
version = weechat.info_get("version_number", "") or 0
version = int(weechat.info_get("version_number", "")) or 0
if version < 0x3020000: # < 3.2.0
path = '%h/' + map_file
return weechat.string_eval_path_home(path, {}, {}, {})