diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-08-02 14:35:41 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-08-02 14:35:41 +0500 |
commit | f964308d22d06fa551f11c5df0034a40dabe9eae (patch) | |
tree | 88da3ba61f277d148957f3030ba8868adeaa756d /tools/ejabberdsql2prosody.lua | |
parent | 1016cb7d48acda978809300f77b6c3dba335efd8 (diff) | |
download | prosody-f964308d22d06fa551f11c5df0034a40dabe9eae.tar.gz prosody-f964308d22d06fa551f11c5df0034a40dabe9eae.zip |
ejabberdsql2prosody: Added support for vCards
Diffstat (limited to 'tools/ejabberdsql2prosody.lua')
-rw-r--r-- | tools/ejabberdsql2prosody.lua | 4 |
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 |