aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit0f0d87f07b8d6e9109b5fb3358078c663beab4d5 (patch)
treec893fed9648d547260429caa0d89825754b7db5a /plugins
parent1db5cd0ec49212378f1a4a9fe0da21fcc92626b6 (diff)
downloadprosody-0f0d87f07b8d6e9109b5fb3358078c663beab4d5.tar.gz
prosody-0f0d87f07b8d6e9109b5fb3358078c663beab4d5.zip
mod_roster: Rename variable to silence shadowing warning [luacheck]
Diffstat (limited to 'plugins')
-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