From 93f2d8d94811e13a6fefcf6f4e1c554db7dbfadb Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 10 Jul 2016 12:26:42 +0200 Subject: [PATCH] plugin XEP_0249: fixed bad use of namespace in addElement --- src/plugins/plugin_xep_0249.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin_xep_0249.py b/src/plugins/plugin_xep_0249.py index d0d59e95..de931d0d 100755 --- a/src/plugins/plugin_xep_0249.py +++ b/src/plugins/plugin_xep_0249.py @@ -104,7 +104,7 @@ class XEP_0249(object): 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]