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('--------------------------------')
 | 
				
			||||||
        ctx.ui_node.log_info('Room Information:')
 | 
					        ctx.ui_node.log_info('Room Information:')
 | 
				
			||||||
        ctx.ui_node.log_info('--------------------------------')
 | 
					        ctx.ui_node.log_info('--------------------------------')
 | 
				
			||||||
        version = args.get("version", "unknown Bonta Protocol")
 | 
					        version = args["version"]
 | 
				
			||||||
        if isinstance(version, list):
 | 
					        ctx.server_version = tuple(version)
 | 
				
			||||||
            ctx.server_version = tuple(version)
 | 
					        version = ".".join(str(item) for item in version)
 | 
				
			||||||
            version = ".".join(str(item) for item in version)
 | 
					
 | 
				
			||||||
        else:
 | 
					 | 
				
			||||||
            ctx.server_version = (0, 0, 0)
 | 
					 | 
				
			||||||
        ctx.ui_node.log_info(f'Server protocol version: {version}')
 | 
					        ctx.ui_node.log_info(f'Server protocol version: {version}')
 | 
				
			||||||
        if "tags" in args:
 | 
					        if "tags" in args:
 | 
				
			||||||
            ctx.ui_node.log_info("Server protocol tags: " + ", ".join(args["tags"]))
 | 
					            ctx.ui_node.log_info("Server protocol tags: " + ", ".join(args["tags"]))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -762,9 +762,6 @@ class ClientMessageProcessor(CommonCommandProcessor):
 | 
				
			||||||
                self.output(
 | 
					                self.output(
 | 
				
			||||||
                    "Sorry, client forfeiting requires you to have beaten the game on this server."
 | 
					                    "Sorry, client forfeiting requires you to have beaten the game on this server."
 | 
				
			||||||
                    " You can ask the server admin for a /forfeit")
 | 
					                    " 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
 | 
					                return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _cmd_remaining(self) -> bool:
 | 
					    def _cmd_remaining(self) -> bool:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue