final L2PcInstance _activeChar = getClient().getActiveChar();
if (_activeChar == null)
return;
PartyMatchRoom _room = PartyMatchRoomList.getInstance().getRoom(_roomid);
if (_room == null)
return;
if ((_activeChar.isInParty() && _room.getOwner().isInParty()) && (_activeChar.getParty().getPartyLeaderOID() == _room.getOwner().getParty().getPartyLeaderOID()))
{
// If user is in party with Room Owner is not removed from Room
}
else
{
_room.deleteMember(_activeChar);
_activeChar.setPartyRoom(0);
_activeChar.broadcastUserInfo();
_activeChar.sendPacket(new ExClosePartyRoom());
_activeChar.sendPacket(new SystemMessage(SystemMessageId.PARTY_ROOM_EXITED));