plugins/muc/muc.lib.lua

changeset 2052
2567f4bf0085
parent 2035
b8c3dbf76a2e
child 2054
f5a198127dd3
--- 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

mercurial