diff -r d22dee1f3dba -r 815816ceb1ad src/js/xmpp_muc.js --- a/src/js/xmpp_muc.js Mon Apr 05 13:18:00 2010 +0100 +++ b/src/js/xmpp_muc.js Mon Apr 05 13:18:24 2010 +0100 @@ -90,9 +90,16 @@ { var text = stanza.getElementsByTagName("status")[0]; if(text) text = Strophe.getText(text); - this.occupants[nick] = {}; + this.occupants[nick] = { nick: nick, status: text }; + var item = get_child(stanza, "x", "http://jabber.org/protocol/muc#user"); + if(item) + { + item = item.getElementsByTagName("item")[0]; + this.occupants[nick].affiliation = item.getAttribute("affiliation"); + this.occupants[nick].role = item.getAttribute("role"); + } if(this.callbacks.joined) - this.callbacks.joined(stanza, this, nick, text); + this.callbacks.joined(stanza, this, this.occupants[nick]); if(this.status_handler) { this.status_handler(stanza);