Diff

tools/ejabberdsql2prosody.lua @ 1649:a6698ab04039

ejabberdsql2prosody: Removed unnecessary stanza reserialization for private storage
author Waqas Hussain <waqas20@gmail.com>
date Sat, 08 Aug 2009 23:23:21 +0500
parent 1648:b05371e6f058
child 2688:95d665f20c71
line wrap: on
line diff
--- a/tools/ejabberdsql2prosody.lua	Sat Aug 08 23:17:32 2009 +0500
+++ b/tools/ejabberdsql2prosody.lua	Sat Aug 08 23:23:21 2009 +0500
@@ -327,7 +327,7 @@
 	print("["..(err or "success").."] vCard: "..row.username.."@"..host);
 end
 for i, row in ipairs(t["private_storage"] or NULL) do
-	private_storage(row.username, host, row.namespace, st.preserialize(parse_xml(row.data)));
+	private_storage(row.username, host, row.namespace, parse_xml(row.data));
 end
 table.sort(t["spool"] or NULL, function(a,b) return a.seq < b.seq; end); -- sort by sequence number, just in case
 local time_offset = os.difftime(os.time(os.date("!*t")), os.time(os.date("*t"))) -- to deal with timezones