Esempio n. 1
0
 private void process(Presence presence) {
   if (presence.getType() == Presence.Type.unavailable) {
     MUCRole mucRole = room.getOccupantByFullJID(realjid);
     if (mucRole != null) {
       room.leaveRoom(mucRole);
     }
   } else {
     throw new UnsupportedOperationException(
         "Cannot process Presence packets of remote users: " + presence);
   }
 }