Software /
code /
prosody
Diff
tools/ejabberd2prosody.lua @ 1126:f6dc334d9836
tools/ejabberd2prosody: Fixed private storage export
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 05 May 2009 21:13:09 +0500 |
parent | 896:2c0b9e3c11c3 |
child | 1523:841d61be198f |
line wrap: on
line diff
--- a/tools/ejabberd2prosody.lua Tue May 05 16:41:17 2009 +0100 +++ b/tools/ejabberd2prosody.lua Tue May 05 21:13:09 2009 +0500 @@ -61,7 +61,7 @@ end function private_storage(node, host, xmlns, stanza) local private = dm.load(node, host, "private") or {}; - private[xmlns] = st.preserialize(stanza); + private[stanza.name..":"..xmlns] = st.preserialize(stanza); local ret, err = dm.store(node, host, "private", private); print("["..(err or "success").."] private: " ..node.."@"..host.." - "..xmlns); end