aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_vcard.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 22:27:25 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 22:27:25 +0100
commit2d7c3d090b88245b323b9b1f474b587a030d6e3e (patch)
tree6984538087e2f8275983de56767a20583e3f579c /plugins/mod_vcard.lua
parent7c8ad7bede58bd7a37da11eec8fef6ed83dc37f0 (diff)
downloadprosody-2d7c3d090b88245b323b9b1f474b587a030d6e3e.tar.gz
prosody-2d7c3d090b88245b323b9b1f474b587a030d6e3e.zip
mod_vcard: Remove unused variable [luacheck]
Diffstat (limited to 'plugins/mod_vcard.lua')
-rw-r--r--plugins/mod_vcard.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua
index b1a4c6e8..c3d6fb8b 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -19,7 +19,7 @@ local function handle_vcard(event)
if stanza.attr.type == "get" then
local vCard;
if to then
- local node, host = jid_split(to);
+ local node = jid_split(to);
vCard = st.deserialize(vcards:get(node)); -- load vCard for user or server
else
vCard = st.deserialize(vcards:get(session.username));-- load user's own vCard