diff options
author | Jonas Schäfer <jonas@wielicki.name> | 2021-12-22 13:06:32 +0100 |
---|---|---|
committer | Jonas Schäfer <jonas@wielicki.name> | 2021-12-22 13:06:32 +0100 |
commit | 663028421f6905cb9ee68fe795af71a60564ae53 (patch) | |
tree | 6113133e8edb7019f2784d971aaa1e43eef0145e /plugins/mod_roster.lua | |
parent | 46a6dafd28fe8e39a39b2a3eb70d3abebc82c828 (diff) | |
download | prosody-663028421f6905cb9ee68fe795af71a60564ae53.tar.gz prosody-663028421f6905cb9ee68fe795af71a60564ae53.zip |
mod_roster: pass correct username to roster-item-removed
The other invocations use it that way, and the only listener in trunk
which uses it (in mod_presence) expects it that way.
Passing the username of the JID from the removed entry causes incorrect
unavailable presence stanzas to be sent, allegedly kicking people off
MUCs.
Fixes #1121.
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r-- | plugins/mod_roster.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 39d59cbd..29466d5b 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -74,7 +74,7 @@ module:hook("iq/self/jabber:iq:roster:query", function(event) local r_item = roster[jid]; if r_item then module:fire_event("roster-item-removed", { - username = node, jid = jid, item = r_item, origin = session, roster = roster, + username = from_node, jid = jid, item = r_item, origin = session, roster = roster, }); local success, err_type, err_cond, err_msg = rm_remove_from_roster(session, jid); if success then |