Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 10791:f46c5e3c97ee
mod_admin_telnet: Add a command to configure pretty-printing settings
Sometimes you wanna adjust the maxdepth or something.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 Apr 2020 23:15:01 +0200 |
parent | 10790:ee2f8ee319ea |
child | 10792:ef2bd183f660 |
line wrap: on
line diff
--- 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()