Diff

plugins/mod_roster.lua @ 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
parent 7782:7c899817ed3b
child 8644:3b28c7728e3f
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