aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-09 17:38:46 +0200
committerKim Alvefur <zash@zash.se>2023-06-09 17:38:46 +0200
commit46781dc89200ff1b689626da1348080c66fee671 (patch)
tree03f63c2b4f614475b2cd459fb462596cf1d972fb /plugins
parentf3414a43d85531ba9dd74c98600b4bd68c3978c4 (diff)
downloadprosody-46781dc89200ff1b689626da1348080c66fee671.tar.gz
prosody-46781dc89200ff1b689626da1348080c66fee671.zip
mod_admin_shell: Use new serialize preset to simplify default config
Two pairs replaced by one. Blame lua-format for the line diff delta.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index e62c3920..b127fc02 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -370,8 +370,11 @@ end
-- Anything in def_env will be accessible within the session as a global variable
--luacheck: ignore 212/self
-local serialize_defaults = module:get_option("console_prettyprint_settings",
- { fatal = false; unquoted = true; maxdepth = 2; table_iterator = "pairs" })
+local serialize_defaults = module:get_option("console_prettyprint_settings", {
+ preset = "pretty";
+ maxdepth = 2;
+ table_iterator = "pairs";
+})
def_env.output = {};
function def_env.output:configure(opts)