Changeset

1722:c48c7f948cfb

mod_delegation: fixed namespace of <forwarded/> child element, as specified in XEP-0297
author Goffi <goffi@goffi.org>
date Mon, 04 May 2015 18:43:17 +0200
parents 1721:f49359330493
children 1723:ef85c42ad977
files mod_delegation/mod_delegation.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_delegation/mod_delegation.lua	Sun May 03 17:50:16 2015 +0200
+++ b/mod_delegation/mod_delegation.lua	Mon May 04 18:43:17 2015 +0200
@@ -222,6 +222,7 @@
 
 local function forward_iq(stanza, ns_data)
 	local to_jid = ns_data.connected
+	stanza.attr.xmlns = 'jabber:client'
 	local iq_stanza  = st.iq({ from=module.host, to=to_jid, type="set" })
 		:tag("delegation", { xmlns=_DELEGATION_NS })
 		:tag("forwarded", { xmlns=_FORWARDED_NS })