mod_delegation: fixed namespace of <forwarded/> child element, as specified in XEP-0297
--- 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 })