def connectionMade(self):
    p = self.transport.getPeer()
    self.peer = ((p.host + ':') + str(p.port))
    self.factory.register(self)
    self._log.info('Client connected: {peer}', peer=self.peer)
    if motd:
        self.factory.communicate(self.peer, motd.encode('utf-8'))
def connectionMade(self):
    p = self.transport.getPeer()
    self.peer = ((p.host + ':') + str(p.port))
    self.factory.register(self)
    self._log.info('Client connected: {peer}', peer=self.peer)
    if motd:
        self.factory.communicate(self.peer, motd.encode('utf-8'))