From ca89197fe9e68f0f37c50c1ff123b7b90d765aa5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 13 Dec 2016 21:25:11 +0100 Subject: mod_roster: Rename variable to silence shadowing warning [luacheck] --- plugins/mod_roster.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 443e5d4a..24c50678 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -142,9 +142,9 @@ module:hook_global("user-deleted", function(event) username = username, jid = jid, item = item, roster = roster, origin = origin, }); else - for jid in pairs(item.pending) do + for pending_jid in pairs(item.pending) do module:fire_event("roster-item-removed", { - username = username, jid = jid, roster = roster, origin = origin, + username = username, jid = pending_jid, roster = roster, origin = origin, }); end end -- cgit v1.2.3