diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index c61eb069d..45c737884 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -34,6 +34,7 @@ from shutil import rmtree import configparser from pkg_resources import parse_version +import gajim from gajim.common import app from gajim.common import nec from gajim.common import configpaths @@ -536,7 +537,7 @@ class PluginManager(metaclass=Singleton): min_v = conf.get('info', 'min_gajim_version', fallback=None) max_v = conf.get('info', 'max_gajim_version', fallback=None) - gajim_v = app.config.get('version').split('+', 1)[0] + gajim_v = gajim.__version__.split('+', 1)[0] gajim_v_cmp = parse_version(gajim_v) if min_v and gajim_v_cmp < parse_version(min_v):