MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence...
authorWaqas Hussain <waqas20@gmail.com>
Sat, 24 Oct 2009 23:19:24 +0000 (04:19 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sat, 24 Oct 2009 23:19:24 +0000 (04:19 +0500)
plugins/muc/muc.lib.lua

index 7a635e8ecd92f2c1a96726c3b1ca73aaf8e3db88..251d6d1f917e38a93cba63d74f44bfea0c224f63 100644 (file)
@@ -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