diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-13 21:25:11 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-13 21:25:11 +0100 |
commit | ca89197fe9e68f0f37c50c1ff123b7b90d765aa5 (patch) | |
tree | c893fed9648d547260429caa0d89825754b7db5a | |
parent | 39fb6e81383f5706e50001ec96633914b29dcd28 (diff) | |
download | prosody-ca89197fe9e68f0f37c50c1ff123b7b90d765aa5.tar.gz prosody-ca89197fe9e68f0f37c50c1ff123b7b90d765aa5.zip |
mod_roster: Rename variable to silence shadowing warning [luacheck]
-rw-r--r-- | plugins/mod_roster.lua | 4 |
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 |