# HG changeset patch # User Waqas Hussain # Date 1256426364 -18000 # Node ID 2567f4bf0085f98427cf375f3447a47d5903ca27 # Parent adc1b92b8c6b2ed66abec41bd029d779a01eb1b9 MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence broadcast was not being properly set. diff -r adc1b92b8c6b -r 2567f4bf0085 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Oct 22 04:47:40 2009 +0500 +++ b/plugins/muc/muc.lib.lua Sun Oct 25 04:19:24 2009 +0500 @@ -239,6 +239,7 @@ 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