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
commitc2f007b32e4da5debcf5a14e0059c5351d1c26ce (patch)
treeb72a52b5de7ee382cfa50bb6ca0194b883ff4bf4 /plugins/mod_roster.lua
parent35705f87ed7115268facc7853d5bc6b6054df4bc (diff)
downloadprosody-c2f007b32e4da5debcf5a14e0059c5351d1c26ce.tar.gz
prosody-c2f007b32e4da5debcf5a14e0059c5351d1c26ce.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);