aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 123b5aa7..2cdea60d 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -89,19 +89,19 @@ end
function console:new_session(admin_session)
local session = {
- send = function (t)
- return send_repl_output(admin_session, t);
- end;
- print = function (...)
- local t = {};
- for i=1,select("#", ...) do
- t[i] = tostring(select(i, ...));
- end
- return send_repl_output(admin_session, table.concat(t, "\t"));
- end;
- serialize = tostring;
- disconnect = function () admin_session:close(); end;
- };
+ send = function (t)
+ return send_repl_output(admin_session, t);
+ end;
+ print = function (...)
+ local t = {};
+ for i=1,select("#", ...) do
+ t[i] = tostring(select(i, ...));
+ end
+ return send_repl_output(admin_session, table.concat(t, "\t"));
+ end;
+ serialize = tostring;
+ disconnect = function () admin_session:close(); end;
+ };
session.env = setmetatable({}, default_env_mt);
session.thread = async.runner(function (line)