Comparison

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
comparison
equal deleted inserted replaced
7782:7c899817ed3b 7783:f54c960240da
140 if jid then 140 if jid then
141 module:fire_event("roster-item-removed", { 141 module:fire_event("roster-item-removed", {
142 username = username, jid = jid, item = item, roster = roster, origin = origin, 142 username = username, jid = jid, item = item, roster = roster, origin = origin,
143 }); 143 });
144 else 144 else
145 for jid in pairs(item.pending) do 145 for pending_jid in pairs(item.pending) do
146 module:fire_event("roster-item-removed", { 146 module:fire_event("roster-item-removed", {
147 username = username, jid = jid, roster = roster, origin = origin, 147 username = username, jid = pending_jid, roster = roster, origin = origin,
148 }); 148 });
149 end 149 end
150 end 150 end
151 end 151 end
152 end, 300); 152 end, 300);