changeset f7925acd4aba in /home/hg/repos/gajim-plugins
author: Yann Leboulanger asterix@lagaule.org branches: details:gajim-plugins?cmd=changeset;node=f7925acd4aba description: [gotr] do not crash when Gajim version has 4 numbers (0.16.4.1)
diffstat:
gotr/manifest.ini | 2 +- gotr/otrmodule.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 2dc8e77a80e5 -r f7925acd4aba gotr/manifest.ini --- a/gotr/manifest.ini Sat Dec 19 02:26:57 2015 +0100 +++ b/gotr/manifest.ini Sun Nov 22 16:59:48 2015 +0100 @@ -1,7 +1,7 @@ [info] name: Off-The-Record Encryption short_name: gotr -version: 1.9.1 +version: 1.9.2 description: Provide OTR encryption. Read <a href="https://github.com/python-otr/gajim-otr/wiki">https://github.com/python-otr/gajim-otr/wiki</a> before use. authors: Kjell Braden afflux.gajim@pentabarf.de homepage: http://gajim-otr.pentabarf.de diff -r 2dc8e77a80e5 -r f7925acd4aba gotr/otrmodule.py --- a/gotr/otrmodule.py Sat Dec 19 02:26:57 2015 +0100 +++ b/gotr/otrmodule.py Sun Nov 22 16:59:48 2015 +0100 @@ -66,7 +66,7 @@ import time import sys from pprint import pformat -from distutils.version import StrictVersion +from distutils.version import LooseVersion
from common import gajim from common import ged @@ -279,7 +279,7 @@ self.handle_incoming_msg) self.events_handlers['before-change-show'] = (ged.PRECORE, self.handle_change_show) - if StrictVersion(gajim.config.get('version')) < StrictVersion(MINVERSION_OUTGOING_MSG_STAZA): + if LooseVersion(gajim.config.get('version')) < LooseVersion(MINVERSION_OUTGOING_MSG_STAZA): self.events_handlers['message-outgoing'] = (ged.OUT_PRECORE, self.handle_outgoing_msg) else: