diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2015-11-22 18:59:48 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2015-11-22 18:59:48 +0300 |
commit | 60ad9bf9d2a634716f73180de48fe9672a366e6f (patch) | |
tree | 9467752de2d6d70f43e5c3f88140a0ce34754249 /gotr | |
parent | bcc4a7a8ab475a6c78c27c224641b482a805ac1b (diff) |
[gotr] do not crash when Gajim version has 4 numbers (0.16.4.1)
Diffstat (limited to 'gotr')
-rw-r--r-- | gotr/manifest.ini | 2 | ||||
-rw-r--r-- | gotr/otrmodule.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gotr/manifest.ini b/gotr/manifest.ini index 212997c..f1de1d4 100644 --- a/gotr/manifest.ini +++ b/gotr/manifest.ini @@ -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 --git a/gotr/otrmodule.py b/gotr/otrmodule.py index 847d4e4..438ddd9 100644 --- a/gotr/otrmodule.py +++ b/gotr/otrmodule.py @@ -66,7 +66,7 @@ import pickle 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 @@ class OtrPlugin(GajimPlugin): 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: |