aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ejabberdsql2prosody.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-02 14:35:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-02 14:35:41 +0500
commitf964308d22d06fa551f11c5df0034a40dabe9eae (patch)
tree88da3ba61f277d148957f3030ba8868adeaa756d /tools/ejabberdsql2prosody.lua
parent1016cb7d48acda978809300f77b6c3dba335efd8 (diff)
downloadprosody-f964308d22d06fa551f11c5df0034a40dabe9eae.tar.gz
prosody-f964308d22d06fa551f11c5df0034a40dabe9eae.zip
ejabberdsql2prosody: Added support for vCards
Diffstat (limited to 'tools/ejabberdsql2prosody.lua')
-rw-r--r--tools/ejabberdsql2prosody.lua4
1 files changed, 4 insertions, 0 deletions
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