# HG changeset patch # User Kim Alvefur # Date 1481660711 -3600 # Node ID f54c960240da600286eb5308b917684f6f805c8e # Parent 7c899817ed3b7d326387ad0b913b2ab2146c5ad2 mod_roster: Rename variable to silence shadowing warning [luacheck] diff -r 7c899817ed3b -r f54c960240da plugins/mod_roster.lua --- a/plugins/mod_roster.lua Tue Dec 13 21:24:12 2016 +0100 +++ b/plugins/mod_roster.lua Tue Dec 13 21:25:11 2016 +0100 @@ -142,9 +142,9 @@ 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