mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
use same version format on client and server
This commit is contained in:
@@ -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']:
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user