aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-10 16:28:54 +0100
committerKim Alvefur <zash@zash.se>2021-11-10 16:28:54 +0100
commit5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577 (patch)
tree5958e09f107e2c1622fffb35a1af2804f97965b0 /plugins/mod_admin_shell.lua
parentaef0454598667638bac970b91f25833c29bde82b (diff)
downloadprosody-5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577.tar.gz
prosody-5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577.zip
mod_admin_shell: Allow passing columns as a string for convenience
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 7bff4ef3..6449f3a0 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -809,6 +809,7 @@ local available_columns = {
};
local function get_colspec(colspec, default)
+ if type(colspec) == "string" then colspec = array(colspec:gmatch("%S+")); end
local columns = {};
for i, col in pairs(colspec or default) do
if type(col) == "string" then