Skip to content
Snippets Groups Projects
Commit 49d32e84 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 4ec93e6e
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment