Mercurial > libervia-backend
comparison sat/core/xmpp.py @ 2794:33fa70c102de
plugin XEP-0045: fixed crash when <delay> is used at an unexpected time.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:07:45 +0100 |
parents | f7deb1c36b47 |
children | 7ab8684784c6 |
comparison
equal
deleted
inserted
replaced
2793:181735d1b062 | 2794:33fa70c102de |
---|---|
869 .format(xml=message_elt.toXml()))) | 869 .format(xml=message_elt.toXml()))) |
870 return {} | 870 return {} |
871 | 871 |
872 if message_elt.uri is None: | 872 if message_elt.uri is None: |
873 # wokkel element parsing strip out root namespace | 873 # wokkel element parsing strip out root namespace |
874 message_elt.uri = C.NS_CLIENT | 874 message_elt.defaultUri = message_elt.uri = C.NS_CLIENT |
875 for c in message_elt.children: | |
876 if c.uri is None: | |
877 c.uri == C.NS_CLIENT | |
875 elif message_elt.uri != C.NS_CLIENT: | 878 elif message_elt.uri != C.NS_CLIENT: |
876 log.warning(_( | 879 log.warning(_( |
877 u"received <message> with a wrong namespace: {xml}" | 880 u"received <message> with a wrong namespace: {xml}" |
878 .format(xml=message_elt.toXml()))) | 881 .format(xml=message_elt.toXml()))) |
879 | 882 |