diff options
-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: |