aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-25 04:19:24 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-25 04:19:24 +0500
commit598ddfd001374594677f48826263358606bafb73 (patch)
treed744b1f9193f9831c162acf3aa50334b3cef7172
parente9f1949a9912da7358d2b9f5df9d13e9236ed7d1 (diff)
downloadprosody-598ddfd001374594677f48826263358606bafb73.tar.gz
prosody-598ddfd001374594677f48826263358606bafb73.zip
MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence broadcast was not being properly set.
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
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