From cc369c3631f63a223caf2ff95e7810301d2a94c0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 2 Feb 2020 06:14:51 +0100 Subject: [PATCH] add license command to client to have MIT compliant compiled client possible --- MultiClient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MultiClient.py b/MultiClient.py index 6d975cce..d32d49be 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -751,7 +751,9 @@ async def console_loop(ctx : Context): snes_buffered_write(ctx, RECV_ITEM_PLAYER_ADDR, bytes([0])) else: logging.info('Invalid item: ' + item) - + if command[0] == "/license": + with open("LICENSE") as f: + logging.info(f.read()) await snes_flush_writes(ctx) def get_item_name_from_id(code):