diff --git a/src/luajit.c b/src/luajit.c index c0b69449..5f8dc6f8 100644 --- a/src/luajit.c +++ b/src/luajit.c @@ -506,8 +506,7 @@ static struct Smain { const char *lua_init_script = "local clear = require(\"clear_globals\")\n" - "-- clear.printAllGlobals()\n" - "clear.clearAllGlobals()\n"; + "clear.clearAllGlobals()\n"; int call_c_function(lua_State *L); @@ -569,6 +568,7 @@ static int pmain(lua_State *L) if (lua_stdin_is_tty()) { print_version(); print_jit_status(L); + printf("\nYou are in a Lua sandbox. You can use the following variables:\n\e[31mprint\e[0m, \e[32mstring\e[0m, \e[33mtable\e[0m, \e[34mtonumber\e[0m, \e[35mtostring\e[0m, \e[36mtype\e[0m\n\n"); dotty(L); } else { dofile(L, NULL); /* Executes stdin as a file. */