diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-14 01:47:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-14 01:47:19 +0100 |
commit | 91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c (patch) | |
tree | 7d28b4edd259140fcdf70663b3a4bf06f5a6c7f2 /plugins/mod_roster.lua | |
parent | 10a290e111c447b2062e103397058ce6ca8c7cfc (diff) | |
parent | 6e0fc36aff25f393c4f338f8c66dfd300b109e6f (diff) | |
download | prosody-91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c.tar.gz prosody-91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r-- | plugins/mod_roster.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 454acebb..24c50678 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -19,7 +19,6 @@ local rm_load_roster = require "core.rostermanager".load_roster; local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; local rm_add_to_roster = require "core.rostermanager".add_to_roster; local rm_roster_push = require "core.rostermanager".roster_push; -local core_post_stanza = prosody.core_post_stanza; module:add_feature("jabber:iq:roster"); @@ -136,7 +135,6 @@ module:hook_global("user-deleted", function(event) local username, host = event.username, event.host; local origin = event.origin or prosody.hosts[host]; if host ~= module.host then return end - local bare = username .. "@" .. host; local roster = rm_load_roster(username, host); for jid, item in pairs(roster) do if jid then @@ -144,9 +142,9 @@ module:hook_global("user-deleted", function(event) username = username, jid = jid, item = item, roster = roster, origin = origin, }); else - for jid in pairs(item.pending) do + for pending_jid in pairs(item.pending) do module:fire_event("roster-item-removed", { - username = username, jid = jid, roster = roster, origin = origin, + username = username, jid = pending_jid, roster = roster, origin = origin, }); end end |