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

@ -12,7 +12,8 @@ modpol.dashboard = function(user)
for key,value in pairs(command_list) do
commands = commands .. "/" .. value .. " "
end
local orgs = "Orgs: " .. modpol.orgs.list_all()
local orgs = "Orgs: " ..
table.concat(modpol.orgs.list_all(), ", ")
local users = "Players: "
.. table.concat(modpol.list_users(), ", ")
-- set up formspec