plugin XEP-0045: fixed crash when <delay> is used at an unexpected time.
This commit is contained in:
parent
8a59034935
commit
198db6c2ca
1 changed files with 22 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue