def __init__(self, reactor, msglimit=20, limitinterval=30):
        """Initialize a connection that has a limit to sending messages

        :param reactor: the reactor of the connection
        :type reactor: :class:`irc.client.Reactor`
        :param msglimit: the maximum number of messages to send in limitinterval
        :type msglimit: :class:`int`
        :param limitinterval: the timeframe in seconds in which you can only send
                              as many messages as in msglimit
        :type limitinterval: :class:`int`
        :raises: None
        """
        super(ServerConnection3, self).__init__(reactor)
        self.sentmessages = collections.deque(maxlen=msglimit + 1)
        """A queue with timestamps form the last sent messages.
        So we can track if we send to many messages."""
        self.limitinterval = limitinterval
        """the timeframe in seconds in which you can only send
        as many messages as in :data:`ServerConncetion3msglimit`"""
def __init__ ( self , reactor , msglimit = 20 , limitinterval = 30 ) : super ( ServerConnection3 , self ) . __init__ ( reactor ) self . sentmessages = collections . deque ( maxlen = msglimit + 1 ) self . limitinterval = limitinterval
Initialize a connection that has a limit to sending messages

        :param reactor: the reactor of the connection
        :type reactor: :class:`irc.client.Reactor`
        :param msglimit: the maximum number of messages to send in limitinterval
        :type msglimit: :class:`int`
        :param limitinterval: the timeframe in seconds in which you can only send
                              as many messages as in msglimit
        :type limitinterval: :class:`int`
        :raises: None