Added modpol.menu() functions modpol and modpol_minetest. Not sure if latter works.
This commit is contained in:
@@ -3,6 +3,20 @@
|
||||
-- User interaction functions for Modular Politics
|
||||
-- Called by modpol.lua
|
||||
|
||||
-- ===================================================================
|
||||
-- Function: modpol.menu(user)
|
||||
-- Params: user (string)
|
||||
-- Q: Should this return a menu of commands relevant to the specific user?
|
||||
-- Output: Displays a menu of commands to the user
|
||||
-- TKTK currently just prints all of modpol---needs major improvement
|
||||
modpol.menu = function(user)
|
||||
local output = "Command list:\n"
|
||||
for key,value in pairs(modpol) do
|
||||
output = output .. "- modpol." .. key .. "\n"
|
||||
end
|
||||
print(output)
|
||||
end
|
||||
|
||||
-- ===================================================================
|
||||
-- Function: modpol.binary_poll_user(user, question)
|
||||
-- Params: user (string), question (string)
|
||||
|
||||
@@ -70,7 +70,6 @@ modpol.load_storage()
|
||||
-- ===================================================================
|
||||
-- ModPol core features
|
||||
|
||||
|
||||
dofile (topdir .. "/api.lua")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user