X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fxmlhandlers.lua;h=182da8940284e1e2f0f804fa7fa9fb08bc62f96a;hb=b4cbbfc80ba799c54dfeff37c44e2673a3322ace;hp=77f00beaab8b54fa17cc58fa9b8f710d3945995b;hpb=59d549a217d6126fe6e007c90cce0894d0726e52;p=prosody.git diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua index 77f00bea..182da894 100644 --- a/core/xmlhandlers.lua +++ b/core/xmlhandlers.lua @@ -1,6 +1,6 @@ -- Prosody IM --- Copyright (C) 2008-2009 Matthew Wild --- Copyright (C) 2008-2009 Waqas Hussain +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. @@ -68,8 +68,8 @@ function init_xmlhandlers(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