if(cmd instanceof Command)
{
String type = cmd.getType();
if("IRO".equals(type))
{
Buddy buddy = new Buddy(conf.getProtocol(), cmd.getParam(2));
buddy.setAlias(Util.urlDecode(cmd.getParam(3)));
conf.addParticipant(buddy);
}
else if("ANS".equals(type) && "OK".equals(cmd.getParam(0)))
{
Buddy[] buddies = conf.getParticipants();
for(int i = 0; i < buddies.length; i++)
processor.conferenceParticipantJoined(conf, buddies[i]);
// Add yourself to the conference
Buddy myself = new Buddy(protocol, protocol.getUsername());
conf.addParticipant(myself);
}
}
}