# HG changeset patch # User Kim Alvefur # Date 1577134541 -3600 # Node ID 3e50f86e5a2e7fd4cc7e62967f8d565b18ad4def # Parent c88f979946c4e5b2ac7a5e92c3d0aad2a15a1982 mod_vcard_legacy: Ignore an unused variable [luacheck] diff -r c88f979946c4 -r 3e50f86e5a2e plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Mon Dec 23 21:52:50 2019 +0100 +++ b/plugins/mod_vcard_legacy.lua Mon Dec 23 21:55:41 2019 +0100 @@ -38,7 +38,7 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event) local origin, stanza = event.origin, event.stanza; local pep_service = mod_pep.get_pep_service(jid_split(stanza.attr.to) or origin.username); - local ok, id, vcard4_item = pep_service:get_last_item("urn:xmpp:vcard4", stanza.attr.from); + local ok, _, vcard4_item = pep_service:get_last_item("urn:xmpp:vcard4", stanza.attr.from); local vcard_temp = st.stanza("vCard", { xmlns = "vcard-temp" }); if ok and vcard4_item then