(self, ctcp_responses=None, default=None)
A plugin which automatically responds to CTCP queries.
        The plugin requires a ProtocolClient.

        :param ctcp_responses: A dictionary containing key, value pairs,
                               the key being the CTCP tag and the value
                               being the answer. The value can be a callable
                               which takes the tag and the argument as argument.
        :param default: A default answer for a non-existent CTCP-request.
                        This can also be a callable (see ctcp_responses).
A plugin which automatically responds to CTCP queries.
        The plugin requires a ProtocolClient.
A plugin which automatically responds to CTCP queries . The plugin requires a ProtocolClient .
def __init__(self, ctcp_responses=None, default=None):
        """
        A plugin which automatically responds to CTCP queries.
        The plugin requires a ProtocolClient.

        :param ctcp_responses: A dictionary containing key, value pairs,
                               the key being the CTCP tag and the value
                               being the answer. The value can be a callable
                               which takes the tag and the argument as argument.
        :param default: A default answer for a non-existent CTCP-request.
                        This can also be a callable (see ctcp_responses).
        """
        self.ctcp_responses = ctcp_responses
        if self.ctcp_responses is None:
            self.ctcp_responses = dict()

        self.default = default
def __init__ ( self , ctcp_responses = None , default = None ) : self . ctcp_responses = ctcp_responses if self . ctcp_responses is None : self . ctcp_responses = dict ( ) self . default = default