Added minetest modules and am stuck on interactions and module flow
This commit is contained in:
@ -176,6 +176,12 @@ minetest.register_on_player_receive_fields(function (player, formname, fields)
|
||||
if formname == "modpol:org_dashboard" then
|
||||
local pname = player:get_player_name()
|
||||
local org = modpol.orgs.get_org(_contexts[pname].current_org)
|
||||
-- just confirm the org still exists:
|
||||
if not org then
|
||||
modpol.interactions.message(pname, "Org no longer exists")
|
||||
modpol.interactions.dashboard(pname)
|
||||
return end
|
||||
-- okay, onward
|
||||
if nil then
|
||||
elseif fields.join then
|
||||
org:add_member(pname)
|
||||
|
Reference in New Issue
Block a user