Software /
code /
prosody-modules
Comparison
mod_vjud/mod_vjud.lua @ 732:317e142fe6f1
mod_vjud: Update util.vcard from verse
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 01 Jul 2012 12:47:51 +0200 |
parent | 730:274bb1a96122 |
child | 733:dd3b30c0dc8a |
comparison
equal
deleted
inserted
replaced
731:15a8b717597b | 732:317e142fe6f1 |
---|---|
59 | 59 |
60 local function get_user_vcard(user) | 60 local function get_user_vcard(user) |
61 local vCard = dm_load(user, module.host, "vcard"); | 61 local vCard = dm_load(user, module.host, "vcard"); |
62 if vCard then | 62 if vCard then |
63 vCard = st.deserialize(vCard); | 63 vCard = st.deserialize(vCard); |
64 vCard = vcard.xep54_to_lua(vCard); | 64 vCard = vcard.from_xep54(vCard); |
65 return setmetatable(vCard, vCard_mt); | 65 return setmetatable(vCard, vCard_mt); |
66 end | 66 end |
67 end | 67 end |
68 | 68 |
69 local at_host = "@"..module.host; | 69 local at_host = "@"..module.host; |