ignore wrong answer to XEP-202 (entity time) requests (Adium don't reply correctly). Fixes #4816

This commit is contained in:
Yann Leboulanger 2009-02-14 18:56:17 +00:00
parent 4ec93e6ea7
commit 49d32e84f6
1 changed files with 3 additions and 0 deletions

View File

@ -1651,6 +1651,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
log.debug('TimeRevisedResultCB')
time_info = ''
qp = iq_obj.getTag('time')
if not qp:
# wrong answer
return
tzo = qp.getTag('tzo').getData()
if tzo == 'Z':
tzo = '0:0'