Software /
code /
prosody
Changeset
11950:d2a9e95fd27b
mod_admin_shell: Fix indentation
It was all of for some reason
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 26 Nov 2021 22:28:37 +0100 |
parents | 11949:ae4bc56f18e0 |
children | 11951:6d9e3f541830 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Fri Nov 26 22:26:48 2021 +0100 +++ b/plugins/mod_admin_shell.lua Fri Nov 26 22:28:37 2021 +0100 @@ -89,19 +89,19 @@ 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)