ignore wrong answer to XEP-202 (entity time) requests (Adium don't reply correctly). Fixes #4816
This commit is contained in:
parent
4ec93e6ea7
commit
49d32e84f6
|
@ -1651,6 +1651,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
log.debug('TimeRevisedResultCB')
|
log.debug('TimeRevisedResultCB')
|
||||||
time_info = ''
|
time_info = ''
|
||||||
qp = iq_obj.getTag('time')
|
qp = iq_obj.getTag('time')
|
||||||
|
if not qp:
|
||||||
|
# wrong answer
|
||||||
|
return
|
||||||
tzo = qp.getTag('tzo').getData()
|
tzo = qp.getTag('tzo').getData()
|
||||||
if tzo == 'Z':
|
if tzo == 'Z':
|
||||||
tzo = '0:0'
|
tzo = '0:0'
|
||||||
|
|
Loading…
Reference in New Issue