def ctcp(self, ctcptype, target, parameter=""):
        """Send a CTCP command."""
        ctcptype = ctcptype.upper()
        tmpl = "\001{ctcptype} {parameter}\001" if parameter else "\001{ctcptype}\001"
        self.privmsg(target, tmpl.format(**vars()))