# HG changeset patch # User Waqas Hussain # Date 1249205741 -18000 # Node ID f6af348cf497900a7896340fc77c8cb2a205f88a # Parent c3ce7cbd123d9b6d69c399c178af0263f6b71eb7 ejabberdsql2prosody: Added support for vCards diff -r c3ce7cbd123d -r f6af348cf497 tools/ejabberdsql2prosody.lua --- a/tools/ejabberdsql2prosody.lua Sun Aug 02 14:35:03 2009 +0500 +++ b/tools/ejabberdsql2prosody.lua Sun Aug 02 14:35:41 2009 +0500 @@ -310,3 +310,7 @@ for i, row in ipairs(t["rostergroups"] or NULL) do roster_group(row.username, host, row.jid, row.grp); end +for i, row in ipairs(t["vcard"] or NULL) do + local ret, err = dm.store(row.username, host, "vcard", st.preserialize(parse_xml(row.vcard))); + print("["..(err or "success").."] vCard: "..row.username.."@"..host); +end