X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fxmppstream.lua;h=2f232fd81127fe71626ab5bbb73941618af1c539;hb=4e2a8775d379a6a94bb976e1e505b214de483807;hp=aa2eb0ed2359a9ae7168d83ce53228d6745e735d;hpb=4d982fe8aec805f213e1e23b1dec7e060e914b56;p=prosody.git diff --git a/util/xmppstream.lua b/util/xmppstream.lua index aa2eb0ed..2f232fd8 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -69,8 +69,8 @@ function new_sax_handlers(session, stream_callbacks) attr[i] = nil; local ns, nm = k:match(ns_pattern); if nm ~= "" then - ns = ns_prefixes[ns]; - if ns then + ns = ns_prefixes[ns]; + if ns then attr[ns..":"..nm] = attr[k]; attr[k] = nil; end @@ -95,10 +95,6 @@ function new_sax_handlers(session, stream_callbacks) stanza = st.stanza(name, attr); else -- we are inside a stanza, so add a tag - attr.xmlns = nil; - if curr_ns ~= stream_default_ns then - attr.xmlns = curr_ns; - end stanza:tag(name, attr); end end