Right now, when a user is kicked, the Room class broadcasts a userDeparture event. A user has suggested that it broadcast a userKick event. Code change would replace line 1029. Suggested change is:
USER_KICKED and USER_BANNED events are dispatched.
Michael McCarthy
April 22, 2010 at 9:08 PM
In our fork of XIFF (probably a bad idea in retrospect) we added a similar thing for granting and revoking of voice. We added two new RoomEvents - USER_VOICE_REVOKED and RoomEvent.USER_VOICE_GRANTED.
Then we added this in the first 'else' of updateRoomRoster:
Right now, when a user is kicked, the Room class broadcasts a userDeparture event. A user has suggested that it broadcast a userKick event. Code change would replace line 1029. Suggested change is:
if(item.reason != undefined) {
dispatchEvent( {target:this, type:"userKick", nickname:userNickname, reason:item.reason} );
} else {
dispatchEvent( {target:this, type:"userDeparture", nickname:userNickname} );
}