public String[] getdelpacket(String chname)
    {
        int num = getNum(chname);
        Packet packet = new Packet();

        packet.addHeader((byte) 0x27, (byte) 0x27);
        packet.addPacketHead((byte) 0x01, (byte) 0x00);
        packet.addString(chname);
        packet.addByte((byte) 0x00);
        while (packet.getLen() != 17)
        {
            packet.addByte((byte) 0xCC);
        }

        packet.addByte2((byte) (bots[num] & 0xff), (byte) 0xFF);

        String[] packandhead = new String[2];

        packandhead[0] = packet.getHeader();
        packandhead[1] = packet.getPacket();

        packet.clean();

        return packandhead;
    }