Commit c72b4fbd authored by Philipp Hörist's avatar Philipp Hörist

CommonError: Add support for condition data

This is used for example to advertise a new MUC after destruction

<gone>xmpp:new@chat.example.org?join</gone>
parent 3d567111
......@@ -361,6 +361,7 @@ class CommonError:
def __init__(self, stanza):
self._error_node = stanza.getTag('error')
self.condition = stanza.getError()
self.condition_data = self._error_node.getTagData(self.condition)
self.app_condition = stanza.getAppError()
self.type = stanza.getErrorType()
self.jid = stanza.getFrom()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment