Mercurial > libervia-backend
changeset 1994:a5eb6f6b8db2
plugin XEP_0249: fixed bad use of namespace in addElement
| author | Goffi <goffi@goffi.org> |
|---|---|
| date | Sun, 10 Jul 2016 12:26:42 +0200 |
| parents | 981e2abbb56c |
| children | b5ef9b2b995e |
| files | src/plugins/plugin_xep_0249.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0249.py Sun Jul 10 12:26:13 2016 +0200 +++ b/src/plugins/plugin_xep_0249.py Sun Jul 10 12:26:42 2016 +0200 @@ -104,7 +104,7 @@ return message = domish.Element((None, 'message')) message["to"] = target.full() - x_elt = message.addElement('x', NS_DIRECT_MUC_INVITATION) + x_elt = message.addElement((NS_DIRECT_MUC_INVITATION, 'x')) x_elt['jid'] = room.userhost() for opt in options: x_elt[opt] = options[opt]
