diff src/plugins/plugin_xep_0055.py @ 725:7c806491c76a

plugin XEP-0055: fixed form's namespace
author Goffi <goffi@goffi.org>
date Tue, 03 Dec 2013 13:51:08 +0100
parents 694f118d0cd5
children 2f8d72226bc0
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0055.py	Tue Dec 03 13:09:49 2013 +0100
+++ b/src/plugins/plugin_xep_0055.py	Tue Dec 03 13:51:08 2013 +0100
@@ -100,7 +100,7 @@
         search_request["from"] = client.jid.full()
         search_request["to"] = to_jid.full()
         query_elt = search_request.addElement('query', NS_SEARCH)
-        x_form = data_form.Form('submit')
+        x_form = data_form.Form('submit', formNamespace = NS_SEARCH)
         x_form.makeFields(search_dict)
         query_elt.addChild(x_form.toElement())
         d = search_request.send(to_jid.full())