diff src/plugins/plugin_xep_0249.py @ 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 200cd707a46d
children 48536a22b599
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]