diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-10 16:28:54 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-10 16:28:54 +0100 |
commit | 5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577 (patch) | |
tree | 5958e09f107e2c1622fffb35a1af2804f97965b0 /plugins | |
parent | aef0454598667638bac970b91f25833c29bde82b (diff) | |
download | prosody-5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577.tar.gz prosody-5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577.zip |
mod_admin_shell: Allow passing columns as a string for convenience
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 1 |
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 |