Changeset

1126:f6dc334d9836

tools/ejabberd2prosody: Fixed private storage export
author Waqas Hussain <waqas20@gmail.com>
date Tue, 05 May 2009 21:13:09 +0500
parents 1125:ad7c1cefb8eb
children 1131:83a150e3b3bb
files tools/ejabberd2prosody.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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