Diff

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
line wrap: on
line diff
--- 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