diff --git a/modpol_minetest/chatcommands/chatcommands.lua b/modpol_minetest/chatcommands/chatcommands.lua index 3d07033..c7b4e17 100644 --- a/modpol_minetest/chatcommands/chatcommands.lua +++ b/modpol_minetest/chatcommands/chatcommands.lua @@ -42,39 +42,34 @@ regchat( -- =================================================================== --- /addorg /add_org +-- /addorg -- This code defines a chat command which creates a new -- "org". Presently, the command makes the user the sole member of the -- "org". -chat_table = { - privs = {} , - func = function (user, param) - local success, message = modpol.add_org (param, { user }) - return true, message - end -} -regchat ("addorg" , chat_table) -regchat ("add_org" , chat_table) +regchat( + "addorg", { + privs = {} , + func = function (user, param) + local success, message = modpol.add_org (param, { user }) + return true, message + end +}) -- =================================================================== --- /listorg /listorgs /list_org /list_orgs +-- /listorg -- In Minetest mode, this code defines a chat command which lists the -- existing "orgs". -- The list shows one "org" per line in the following format: -- org_name (member, member, ...) -chat_table = { - privs = {} , - func = function (user, param) - return true, "Orgs:\n" .. modpol.list_orgs() - end -} - -regchat ("listorg" , chat_table) -regchat ("listorgs" , chat_table) -regchat ("list_org" , chat_table) -regchat ("list_orgs" , chat_table) +regchat( + "listorg", { + privs = {} , + func = function (user, param) + return true, "Orgs:\n" .. modpol.list_orgs() + end +}) -- =================================================================== -- /listplayers