From 598ddfd001374594677f48826263358606bafb73 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 25 Oct 2009 04:19:24 +0500 Subject: MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence broadcast was not being properly set. --- plugins/muc/muc.lib.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 7a635e8e..251d6d1f 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -239,6 +239,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc pr = st.clone(occupant.sessions[new_jid]) :tag("x", {xmlns='http://jabber.org/protocol/muc#user'}) :tag("item", {affiliation=occupant.affiliation, role=occupant.role}); + pr.attr.from = current_nick; self:broadcast_except_nick(pr, current_nick); end else -- cgit v1.2.3