def remove_channel_from_packet(self, packet):
        """
        Removes a channel from the Channel list when given a packet.

        Args:
            packet (Packet): incoming packet.

        """
        channel = IMC2Channel(packet)
        try:
            del self[channel.name]
        except __HOLE__:
            # No matching entry, no big deal.
            pass


#
# IMC2 protocol
#
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/imc2.py/IMC2ChanList.remove_channel_from_packet