more compat removal
This commit is contained in:
parent
94dafa3c55
commit
add0762114
|
@ -763,12 +763,10 @@ async def process_server_cmd(ctx: Context, cmd, args):
|
|||
ctx.ui_node.log_info('--------------------------------')
|
||||
ctx.ui_node.log_info('Room Information:')
|
||||
ctx.ui_node.log_info('--------------------------------')
|
||||
version = args.get("version", "unknown Bonta Protocol")
|
||||
if isinstance(version, list):
|
||||
ctx.server_version = tuple(version)
|
||||
version = ".".join(str(item) for item in version)
|
||||
else:
|
||||
ctx.server_version = (0, 0, 0)
|
||||
version = args["version"]
|
||||
ctx.server_version = tuple(version)
|
||||
version = ".".join(str(item) for item in version)
|
||||
|
||||
ctx.ui_node.log_info(f'Server protocol version: {version}')
|
||||
if "tags" in args:
|
||||
ctx.ui_node.log_info("Server protocol tags: " + ", ".join(args["tags"]))
|
||||
|
|
|
@ -762,9 +762,6 @@ class ClientMessageProcessor(CommonCommandProcessor):
|
|||
self.output(
|
||||
"Sorry, client forfeiting requires you to have beaten the game on this server."
|
||||
" You can ask the server admin for a /forfeit")
|
||||
if self.client.version < [2, 1, 0]:
|
||||
self.output(
|
||||
"Your client is too old to send game beaten information. Please update, load you savegame and reconnect.")
|
||||
return False
|
||||
|
||||
def _cmd_remaining(self) -> bool:
|
||||
|
|
Loading…
Reference in New Issue