From 9c75374da47e4e7240697f4c8cd22ec67cb92996 Mon Sep 17 00:00:00 2001 From: js Date: Tue, 17 Jun 2008 18:17:30 +0000 Subject: [PATCH] Use the namespace variable. Sorry, forgot to change that here. --- 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 352332994..3b7721432 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1695,9 +1695,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, # TODO: We shouldn't answer if we're invisible! contact = gajim.contacts.get_contact(self.name, common.gajim.get_room_and_nick_from_fjid(frm)[0]) - if msg.getTag('request', namespace='urn:xmpp:receipts') and \ - gajim.config.get_per('accounts', self.name, 'answer_receipts') \ - and contact and contact.sub not in (u'to', u'none'): + if msg.getTag('request', namespace=common.xmpp.NS_RECEIPTS) \ + and gajim.config.get_per('accounts', self.name, + 'answer_receipts') and contact and contact.sub \ + not in (u'to', u'none'): receipt = common.xmpp.Message(to = jid, typ = 'chat') receipt.setID(msg.getID()) receipt.setTag('received',