Kicking users

Description

It is impossible in 200B3 to kick an user, or change its Role (if you are owner or mod. of course!)...
in Room.as at line 410 change
ext.addItem(null, MUC.NO_ROLE, null, null, null, reason);
into
ext.addItem(null, MUC.NO_ROLE, occupantNick, null, null, reason);

And you could do the same for setOccupantVoice function at line 428.

As I wanted to grant ppl to moderator, I tried more modifications, which are working well:

public function setOccupantVoice( occupantNick:String, newRole:String ):Void
{
if( isActive() ) {
var tempIQ:IQ = new IQ( getRoomJID(), IQ.SET_TYPE, XMPPStanza.generateID("voice_") );
var ext:MUCAdminExtension = new MUCAdminExtension(tempIQ.getNode());
ext.addItem(null, newRole,occupantNick);
tempIQ.addExtension(ext);
myConnection.send( tempIQ );
}
}

I can change a nickname Role by using one of these examples:
chatRoom.setOccupantVoice(selectedNickname,MUC.MODERATOR_ROLE);
chatRoom.setOccupantVoice(selectedNickname,MUC.VISITOR_ROLE);
chatRoom.setOccupantVoice(selectedNickname,MUC.PARTICIPANT_ROLE);

Environment

None

Activity

Show:
Former user
November 2, 2006, 11:13 AM
Barry Barry
August 24, 2005, 1:11 AM

made change based on forums

Fixed

Assignee

Barry Barry

Reporter

Barry Barry