'Build the protocol and assign it some properties.
Args:
addr (str): Not used; using factory data.'

def buildProtocol(self, addr):

    protocol = IRCBot()
    protocol.factory = self
    protocol.nickname = self.nickname
    protocol.channel = self.channel
    protocol.network = self.network
    protocol.port = self.port
    protocol.ssl = self.ssl
    protocol.nicklist = []
    return protocol
