Comparison

plugins/mod_roster.lua @ 7334:566d0a56b37f

mod_roster: Fire event for pending items for good measure
author Kim Alvefur <zash@zash.se>
date Mon, 04 Apr 2016 21:48:42 +0200
parent 7333:9d0e65d919e8
child 7781:0d31d8052dd8
comparison
equal deleted inserted replaced
7333:9d0e65d919e8 7334:566d0a56b37f
141 for jid, item in pairs(roster) do 141 for jid, item in pairs(roster) do
142 if jid then 142 if jid then
143 module:fire_event("roster-item-removed", { 143 module:fire_event("roster-item-removed", {
144 username = username, jid = jid, item = item, roster = roster, origin = origin, 144 username = username, jid = jid, item = item, roster = roster, origin = origin,
145 }); 145 });
146 else
147 for jid in pairs(item.pending) do
148 module:fire_event("roster-item-removed", {
149 username = username, jid = jid, roster = roster, origin = origin,
150 });
151 end
146 end 152 end
147 end 153 end
148 end, 300); 154 end, 300);