aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_roster.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-04 21:48:42 +0200
committerKim Alvefur <zash@zash.se>2016-04-04 21:48:42 +0200
commitafcc8898695dd49b60998369e55be70d1a266a82 (patch)
treeb72a52b5de7ee382cfa50bb6ca0194b883ff4bf4 /plugins/mod_roster.lua
parentcc487c8b9d4694e2474dc11b33555b1eaac17527 (diff)
downloadprosody-afcc8898695dd49b60998369e55be70d1a266a82.tar.gz
prosody-afcc8898695dd49b60998369e55be70d1a266a82.zip
mod_roster: Fire event for pending items for good measure
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r--plugins/mod_roster.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua
index 0e3fdc4e..454acebb 100644
--- a/plugins/mod_roster.lua
+++ b/plugins/mod_roster.lua
@@ -143,6 +143,12 @@ module:hook_global("user-deleted", function(event)
module:fire_event("roster-item-removed", {
username = username, jid = jid, item = item, roster = roster, origin = origin,
});
+ else
+ for jid in pairs(item.pending) do
+ module:fire_event("roster-item-removed", {
+ username = username, jid = jid, roster = roster, origin = origin,
+ });
+ end
end
end
end, 300);