From 18911a1490136343fab72852f686a8422cde36b4 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 16 Feb 2020 16:20:00 +0100 Subject: [PATCH] use same version format on client and server --- MultiClient.py | 5 ++++- MultiServer.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MultiClient.py b/MultiClient.py index 1ca7098c..e74fd606 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -610,7 +610,10 @@ async def process_server_cmd(ctx : Context, cmd, args): logging.info('--------------------------------') logging.info('Room Information:') logging.info('--------------------------------') - logging.info(f'Server protocol version: {args.get("version", "unknown Bonta Protocol")}') + version = args.get("version", "unknown Bonta Protocol") + if not type(version) == 'str': + version = ".".join(str(item) for item in version) + logging.info(f'Server protocol version: {version}') if "tags" in args: logging.info("Server protocol tags: " + ", ".join(args["tags"])) if args['password']: diff --git a/MultiServer.py b/MultiServer.py index fe9b56a1..3117a6dc 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -157,7 +157,7 @@ async def on_client_connected(ctx : Context, client : Client): # tags are for additional features in the communication. # Name them by feature or fork, as you feel is appropriate. 'tags': ['Berserker'], - 'version': "1.0.0" + 'version': [1, 0, 0] }]]) async def on_client_disconnected(ctx : Context, client : Client):