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 | 0f0d87f07b8d6e9109b5fb3358078c663beab4d5 (patch) | |
tree | c893fed9648d547260429caa0d89825754b7db5a | |
parent | 1db5cd0ec49212378f1a4a9fe0da21fcc92626b6 (diff) | |
download | prosody-0f0d87f07b8d6e9109b5fb3358078c663beab4d5.tar.gz prosody-0f0d87f07b8d6e9109b5fb3358078c663beab4d5.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 |