plugin XEP-0045: fixed crash when <delay> is used at an unexpected time.

This commit is contained in:
Goffi 2019-01-26 20:07:45 +01:00
commit 198db6c2ca

View file

@ -871,7 +871,10 @@ class SatMessageProtocol(xmppim.MessageProtocol):
if message_elt.uri is None:
# wokkel element parsing strip out root namespace
message_elt.uri = C.NS_CLIENT
message_elt.defaultUri = message_elt.uri = C.NS_CLIENT
for c in message_elt.children:
if c.uri is None:
c.uri == C.NS_CLIENT
elif message_elt.uri != C.NS_CLIENT:
log.warning(_(
u"received <message> with a wrong namespace: {xml}"