Software /
code /
prosody
Comparison
plugins/mod_vcard_legacy.lua @ 10549:3e50f86e5a2e
mod_vcard_legacy: Ignore an unused variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:55:41 +0100 |
parent | 10270:c2b9ff42db03 |
child | 10864:1b657605ea29 |
comparison
equal
deleted
inserted
replaced
10548:c88f979946c4 | 10549:3e50f86e5a2e |
---|---|
36 } | 36 } |
37 | 37 |
38 module:hook("iq-get/bare/vcard-temp:vCard", function (event) | 38 module:hook("iq-get/bare/vcard-temp:vCard", function (event) |
39 local origin, stanza = event.origin, event.stanza; | 39 local origin, stanza = event.origin, event.stanza; |
40 local pep_service = mod_pep.get_pep_service(jid_split(stanza.attr.to) or origin.username); | 40 local pep_service = mod_pep.get_pep_service(jid_split(stanza.attr.to) or origin.username); |
41 local ok, id, vcard4_item = pep_service:get_last_item("urn:xmpp:vcard4", stanza.attr.from); | 41 local ok, _, vcard4_item = pep_service:get_last_item("urn:xmpp:vcard4", stanza.attr.from); |
42 | 42 |
43 local vcard_temp = st.stanza("vCard", { xmlns = "vcard-temp" }); | 43 local vcard_temp = st.stanza("vCard", { xmlns = "vcard-temp" }); |
44 if ok and vcard4_item then | 44 if ok and vcard4_item then |
45 local vcard4 = vcard4_item.tags[1]; | 45 local vcard4 = vcard4_item.tags[1]; |
46 | 46 |