Use the namespace variable. Sorry, forgot to change that here.

This commit is contained in:
js 2008-06-17 18:17:30 +00:00
parent abdd43e5eb
commit 9c75374da4
1 changed files with 4 additions and 3 deletions

View File

@ -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',