summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 00:51:07 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 00:51:07 +0000
commitbee3b7c75c27a7f162f2e745f6d5835ca16b11d6 (patch)
treeb9735b70d20a8a61b0dcaabff135e3b7cd84a15e /src/gui.py
parent32925f51f2fc26a447ce8ae29d9653caac8af2c2 (diff)
downloadpoezio-bee3b7c75c27a7f162f2e745f6d5835ca16b11d6.tar.gz
poezio-bee3b7c75c27a7f162f2e745f6d5835ca16b11d6.tar.bz2
poezio-bee3b7c75c27a7f162f2e745f6d5835ca16b11d6.tar.xz
poezio-bee3b7c75c27a7f162f2e745f6d5835ca16b11d6.zip
Support old and deprecated XEP 0091 because it's still used on buggy servers like @conference.codingteam.net. Fixed #1677
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index 7a26f59a..6dae9635 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -387,7 +387,14 @@ class Gui(object):
delayed = True
date = common.datetime_tuple(delay_tag.getAttr('stamp'))
else:
- delayed = False
+ # We support the OLD and deprecated XEP: http://xmpp.org/extensions/xep-0091.html
+ # But it sucks, please, Jabber servers, don't do this :(
+ delay_tag = stanza.getTag('x', namespace='jabber:x:delay')
+ if delay_tag:
+ delayed = True
+ date = common.datetime_tuple(delay_tag.getAttr('stamp'))
+ else:
+ delayed = False
if stanza.getType() != 'groupchat':
return # ignore all messages not comming from a MUC
nick_from = stanza.getFrom().getResource()