Got first token modules working, and a bunch of bugfixes throughout

This commit is contained in:
Nathan Schneider
2021-12-26 23:03:57 -07:00
parent 0c59767ef7
commit 286d131839
13 changed files with 182 additions and 19 deletions

View File

@ -148,12 +148,10 @@ function change_modules:propose_change(type, mod_text)
"Consent reached:\nAdding \""
..mod_text.."\" to org "..self.org.name)
elseif type == "remove" then
modpol.msg("Removing!")
local i = 0
for k,v in pairs(self.org.modules) do
i = i + 1
if v.name == mod_text then
modpol.msg("got it!")
self.org.modules[k] = nil
end
end