

def __init__(self, protocol):
    "\n        Initialize ttype by storing protocol on ourselves and calling\n        the client to see if it supporst ttype.\n\n        Args:\n            protocol (Protocol): The protocol instance.\n\n        Notes:\n            The `self.ttype_step` indicates how far in the data\n            retrieval we've gotten.\n\n        "
    self.ttype_step = 0
    self.protocol = protocol
    self.protocol.protocol_flags['TTYPE'] = {
        'init_done': False,
    }
    self.protocol.protocol_flags['TTYPE']['ANSI'] = True
    self.protocol.negotiationMap[TTYPE] = self.will_ttype
    self.protocol.do(TTYPE).addCallbacks(self.will_ttype, self.wont_ttype)

dataset/ETHPy150Open evennia/evennia/evennia/server/portal/ttype.py Ttype.__init__/original