added some notes to the modules, some not currently functional. rewriting process.lua to work with new modules, support pending actions
This commit is contained in:
+14
-14
@@ -12,20 +12,20 @@ function join_org.initiate(initiator, org, result)
|
||||
end
|
||||
)
|
||||
|
||||
-- for i, member in ipairs(org.members) do
|
||||
-- org:add_pending_action(
|
||||
-- member,
|
||||
-- function ()
|
||||
-- modpol.interactions.binary_poll_user(
|
||||
-- member,
|
||||
-- "Let " .. initiator .. " join " .. org.name .. "?",
|
||||
-- function (resp)
|
||||
|
||||
-- end
|
||||
-- )
|
||||
-- end
|
||||
-- )
|
||||
-- end
|
||||
for i, member in ipairs(org.members) do
|
||||
org:add_pending_action(
|
||||
member,
|
||||
function ()
|
||||
modpol.interactions.binary_poll_user(
|
||||
member,
|
||||
"Let " .. initiator .. " join " .. org.name .. "?",
|
||||
function (resp)
|
||||
|
||||
end
|
||||
)
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
if result then result() end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user