diff options
-rw-r--r-- | plugins/mod_roster.lua | 6 |
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); |