Mercurial > prosody-modules
comparison mod_vjud/mod_vjud.lua @ 2179:a90c7d7e7413
mod_vjud: Fix missing comma (thanks Tobias)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 24 May 2016 11:59:25 +0200 |
parents | cf3bdcb633f0 |
children | 5dffb85e62c4 |
comparison
equal
deleted
inserted
replaced
2178:24c9c0255235 | 2179:a90c7d7e7413 |
---|---|
57 end | 57 end |
58 end | 58 end |
59 }; | 59 }; |
60 | 60 |
61 local function get_user_vcard(user, host) | 61 local function get_user_vcard(user, host) |
62 local vCard err = dm_load(user, host or base_host, "vcard"); | 62 local vCard, err = dm_load(user, host or base_host, "vcard"); |
63 if not vCard then return nil, err; end | 63 if not vCard then return nil, err; end |
64 vCard = st.deserialize(vCard); | 64 vCard = st.deserialize(vCard); |
65 vCard, err = vcard.from_xep54(vCard); | 65 vCard, err = vcard.from_xep54(vCard); |
66 if not vCard then return nil, err; end | 66 if not vCard then return nil, err; end |
67 return setmetatable(vCard, vCard_mt); | 67 return setmetatable(vCard, vCard_mt); |