Changed modpol.orgs.list_all to return table not string

This commit is contained in:
Nathan Schneider
2021-04-17 09:50:18 -06:00
parent a6cd6ebcfe
commit 9f65e2bdd3
4 changed files with 21 additions and 18 deletions

View File

@ -56,17 +56,18 @@ regchat(
})
-- ===================================================================
-- /listorg
-- In Minetest mode, this code defines a chat command which lists the
-- /listorgs
-- In Minetest mode, this code defines a chat command which lists
-- existing "orgs".
-- The list shows one "org" per line in the following format:
-- org_name (member, member, ...)
regchat(
"listorg", {
"listorgs", {
privs = {} ,
func = function (user, param)
return true, "Orgs:\n" .. modpol.orgs.list_all()
return true, "Orgs: " ..
table.concat(modpol.orgs.list_all(), ", ")
end
})