def checkClientServerVersions(self, clientVersion, serverVersion): if not isValidClientVersion(clientVersion, serverVersion): LOG_DEBUG('Version mismatch. Client is "%s", server needs "%s".' % (clientVersion, serverVersion)) self.__isVersionsDiffered = True BigWorld.callback(0.001, BigWorld.disconnect) else: self.__isVersionsDiffered = False
def checkClientServerVersions(self, clientVersion, serverVersion): if not isValidClientVersion(clientVersion, serverVersion) or ResMgr.activeContentType( ) in (constants.CONTENT_TYPE.INCOMPLETE, constants.CONTENT_TYPE.TUTORIAL): LOG_DEBUG('Version mismatch. Client is "%s", server needs "%s".' % (clientVersion, serverVersion)) self.onRejected(LOGIN_STATUS.LOGIN_BAD_PROTOCOL_VERSION, {}) BigWorld.disconnect()
def checkClientServerVersions(self, clientVersion, serverVersion): if not isValidClientVersion(clientVersion, serverVersion) or ResMgr.activeContentType() in (constants.CONTENT_TYPE.INCOMPLETE, constants.CONTENT_TYPE.TUTORIAL): LOG_DEBUG('Version mismatch. Client is "%s", server needs "%s".' % (clientVersion, serverVersion)) self.onRejected(LOGIN_STATUS.LOGIN_BAD_PROTOCOL_VERSION, {}) BigWorld.disconnect()