Changeset

7783:f54c960240da

mod_roster: Rename variable to silence shadowing warning [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 13 Dec 2016 21:25:11 +0100
parents 7782:7c899817ed3b
children 7784:9f70d35a1602
files plugins/mod_roster.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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