From 7f2a62ac00fd05775de4b2d95e5f58003936ff2e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 29 Oct 2020 05:39:01 +0100 Subject: [PATCH] Minor fixes. --- new2/plomrogue/commands.py | 1 + new2/rogue_chat_nocanvas_monochrome.html | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index 96c5d22..dc65375 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -11,6 +11,7 @@ def cmd_ALL(game, msg, connection_id): game.io.send('CHAT ' + quote(t.nickname + ': ' + msg)) cmd_ALL.argtypes = 'string' +# TOOD split into two commands def cmd_LOGIN(game, nick, connection_id): for t in [t for t in game.things if t.type_ == 'player' and t.nickname == nick]: raise GameError('name already in use') diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index 9c70d82..e3204e8 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -415,7 +415,6 @@ server.websocket.onmessage = function (event) { game.player_id = parseInt(tokens[1]); } else if (tokens[0] === 'LOGIN_OK') { server.send(['GET_GAMESTATE']); - tui.log_msg('@ ' + tokens[1]); tui.log_help(); tui.switch_mode(mode_play); } else if (tokens[0] === 'ANNOTATION') { -- 2.30.2