# HG changeset patch # User Kim Alvefur # Date 1588194901 -7200 # Node ID f46c5e3c97eee5056b43f302689aa9ada053748f # Parent ee2f8ee319ea12e2637d6e32a9b3a12d2464444f mod_admin_telnet: Add a command to configure pretty-printing settings Sometimes you wanna adjust the maxdepth or something. diff -r ee2f8ee319ea -r f46c5e3c97ee plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Wed Apr 29 22:59:01 2020 +0200 +++ b/plugins/mod_admin_telnet.lua Wed Apr 29 23:15:01 2020 +0200 @@ -330,6 +330,11 @@ --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()