aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_roster.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-13 21:25:11 +0100
committerKim Alvefur <zash@zash.se>2016-12-13 21:25:11 +0100
commitca89197fe9e68f0f37c50c1ff123b7b90d765aa5 (patch)
treec893fed9648d547260429caa0d89825754b7db5a /plugins/mod_roster.lua
parent39fb6e81383f5706e50001ec96633914b29dcd28 (diff)
downloadprosody-ca89197fe9e68f0f37c50c1ff123b7b90d765aa5.tar.gz
prosody-ca89197fe9e68f0f37c50c1ff123b7b90d765aa5.zip
mod_roster: Rename variable to silence shadowing warning [luacheck]
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r--plugins/mod_roster.lua4
1 files changed, 2 insertions, 2 deletions
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