aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-02 20:37:49 +0200
committerKim Alvefur <zash@zash.se>2020-05-02 20:37:49 +0200
commitf1c4d468e2134147b6aec12910837d05b332b8d6 (patch)
tree118b850ab9abfde0f5ded9448b4dce24a5e695e5 /plugins
parentbfdff4488f72dd5e3595968b2fdb14d054c3977c (diff)
downloadprosody-f1c4d468e2134147b6aec12910837d05b332b8d6.tar.gz
prosody-f1c4d468e2134147b6aec12910837d05b332b8d6.zip
mod_admin_telnet: Reuse existing pretty printing setup
Didn't do the configurable defaults thing here because I was going to do this, so that there's only one spot where it's done.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 93a4587f..792f4f78 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -81,7 +81,7 @@ function console:new_session(conn)
end
w("| "..table.concat(t, "\t").."\n");
end;
- serialize = serialization.new({ fatal = false, unquoted = true, maxdepth = 2});
+ serialize = tostring;
disconnect = function () conn:close(); end;
};
session.env = setmetatable({}, default_env_mt);
@@ -98,6 +98,8 @@ function console:new_session(conn)
end
end
+ session.env.output:configure();
+
return session;
end