From 85fbcb79e983c52a6c622c67206bccb66c23667d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 19 Mar 2006 14:59:17 +0000 Subject: [PATCH] fix tb --- src/common/connection_handlers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 173241f14..9a42a30da 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -27,6 +27,7 @@ from encodings.punycode import punycode_encode import socks5 import common.xmpp +from common import GnuPG from common import helpers from common import gajim from common import i18n @@ -1229,7 +1230,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco) if not msgtxt and chatstate_child.getTag('composing'): chatstate = 'composing' - if encTag and USE_GPG: + if encTag and GnuPG.USE_GPG: #decrypt encmsg = encTag.getData() @@ -1315,7 +1316,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco) except: prio = 0 keyID = '' - if sigTag and USE_GPG: + if sigTag and GnuPG.USE_GPG: #verify sigmsg = sigTag.getData() keyID = self.gpg.verify(status, sigmsg) @@ -1655,4 +1656,4 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco) con.RegisterHandler('iq', self._IqCB) con.RegisterHandler('iq', self._StanzaArrivedCB) con.RegisterHandler('presence', self._StanzaArrivedCB) - con.RegisterHandler('message', self._StanzaArrivedCB) \ No newline at end of file + con.RegisterHandler('message', self._StanzaArrivedCB)