Software /
code /
prosody
Changeset
2051:2567f4bf0085
MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence broadcast was not being properly set.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 25 Oct 2009 04:19:24 +0500 |
parents | 2050:adc1b92b8c6b |
children | 2052:161db352822c |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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