@classmethod
def parse(cls, line):
    """Return a new :py:class:`~PyIRC.auxparse.CTCPMessage` from
        the :py:class:`~PyIRC.line.Line` instance specified.
        """
    message = line.params[1]
    if not message.startswith('\x01') or not message.endswith('\x01'):
        return None
    message = message[1:-1]
    command, _, param = message.partition(' ')
    param = param.strip()
    if not param:
        param = None
    if not line.hostmask or not line.hostmask.nick:
        target = line.params[0]
    else:
        target = line.hostmask.nick
    return cls(line.command.upper(), command.upper(), target, param)
