Changed modpol.orgs.list_all to return table not string
This commit is contained in:
@ -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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user