From d01914f7b211c68f0fc7701941df47cd73353fd3 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 21 Aug 2017 11:16:22 +0200 Subject: [PATCH] BUGFIX: unknown symbol near "/" 2017-08-21 11:00:57 Cannot execute command. Error: [string "local a='{"players":{'local b=false;for c,d i..."]:2: unexpected symbol near '/' kept appearing in chat, lagging the server and occasionally causing dropouts. I believe this was magically fixed --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 9fb84da4..560c0b68 100644 --- a/client.js +++ b/client.js @@ -63,7 +63,7 @@ function messageInterface(command, callback) { } } else if(typeof command == "string" && client && client.exec && typeof client.exec == "function") { try { - client.exec(command, callback); + client.exec(command+"\n", callback); } catch (err) { console.log(err); }