def handshake_done(self, force=False):
        if self.handshakes > 0:
            if force:
                self.sessionhandler.sync(self)
                return
            self.handshakes -= 1
            if self.handshakes <= 0:
                # do the sync
                self.sessionhandler.sync(self)
This is called by all telnet extensions once they are finished.
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/telnet.py/TelnetProtocol.handshake_done