X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fxmppstream.lua;h=2f232fd81127fe71626ab5bbb73941618af1c539;hb=4e2a8775d379a6a94bb976e1e505b214de483807;hp=d22c923b6f7987781556d5863331ccda4a95379e;hpb=58e6ce520c1050beeca7da5ec370b0786889f808;p=prosody.git diff --git a/util/xmppstream.lua b/util/xmppstream.lua index d22c923b..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