aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-29 23:15:01 +0200
committerKim Alvefur <zash@zash.se>2020-04-29 23:15:01 +0200
commit222299d18c5524cc3ee344e6c24f13dfb4a876dd (patch)
tree77c0666cafc80962d2b96424afc9dc552455ac05 /plugins
parentc38264dd58ffae438f630380fed2996f4f515afe (diff)
downloadprosody-222299d18c5524cc3ee344e6c24f13dfb4a876dd.tar.gz
prosody-222299d18c5524cc3ee344e6c24f13dfb4a876dd.zip
mod_admin_telnet: Add a command to configure pretty-printing settings
Sometimes you wanna adjust the maxdepth or something.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index a27f6d5c..d25a576a 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -330,6 +330,11 @@ end
--luacheck: ignore 212/self
+def_env.output = {};
+function def_env.output:configure(opts)
+ self.session.serialize = serialization.new(opts);
+end
+
def_env.server = {};
function def_env.server:insane_reload()