}
else chatSplitPane.appendSystemMessage(presence.getErrorDescription());
return;
}
final JID jid = presence.getFrom();
XMUCUser temp=null;
if(presence.hasExtensions()) {
for(Iterator i = presence.getExtensions();i.hasNext();) {
Object o = i.next();
if(o instanceof XMUCUser) {
temp =(XMUCUser)o;
break;
}
}
}
final XMUCUser xMucUser = temp;
if (me.equals(jid.getResource())) {
if(xMucUser!=null && xMucUser.getStatusCode()==303) {//own nickname change
me = xMucUser.getNick();
fullRoomJID = new JID(roomJID.getUser(),
roomJID.getDomain(),me);
btnStatus.setJID(fullRoomJID);
} else {
ownPresenceChanged(presence, xMucUser);
if (xMucUser!=null && xMucUser.getStatusCode()==201) {
new IQMUCOwnerConfigure(backend, roomJID, new XData("submit"));
}
}
}
if(presence.getType().equals("unavailable")) {