From 49d32e84f6c14de318631ead985501d3cf45597f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 14 Feb 2009 18:56:17 +0000 Subject: [PATCH] ignore wrong answer to XEP-202 (entity time) requests (Adium don't reply correctly). Fixes #4816 --- src/common/connection_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index a1cde3402..c25dec8fa 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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'