From f964308d22d06fa551f11c5df0034a40dabe9eae Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 2 Aug 2009 14:35:41 +0500 Subject: ejabberdsql2prosody: Added support for vCards --- tools/ejabberdsql2prosody.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua index c9f8beb6..21d480ea 100644 --- a/tools/ejabberdsql2prosody.lua +++ b/tools/ejabberdsql2prosody.lua @@ -310,3 +310,7 @@ end 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 -- cgit v1.2.3