home · contact · privacy
Fix unparser.quote bug.
[plomrogue2-experiments] / new2 / rogue_chat_nocanvas_monochrome.html
index 9c70d829b59ffbaa1f1cf1898a0a839afbabd209..7f1820f976793f39f28af3d996336cd60b879ed6 100644 (file)
@@ -149,7 +149,7 @@ let unparser = {
         let quoted = ['"'];
         for (let i = 0; i < str.length; i++) {
             let c = str[i];
-            if (c in ['"', '\\']) {
+            if (['"', '\\'].includes(c)) {
                 quoted.push('\\');
             };
             quoted.push(c);
@@ -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') {