# HG changeset patch # User Kim Alvefur # Date 1636558134 -3600 # Node ID b043e1bb8e8eeca6f1fd2010cf2311a1dc5a4ebb # Parent b0b258e092daff061c444d3eb4c03e4e6ce9622e mod_admin_shell: Allow passing columns as a string for convenience diff -r b0b258e092da -r b043e1bb8e8e plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Wed Nov 10 15:54:27 2021 +0100 +++ b/plugins/mod_admin_shell.lua Wed Nov 10 16:28:54 2021 +0100 @@ -809,6 +809,7 @@ }; 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