Small bugfixes

This commit is contained in:
Nathan Schneider
2022-08-17 15:39:11 -06:00
parent 0c13e6b084
commit df20cc835b
2 changed files with 8 additions and 8 deletions

View File

@@ -172,7 +172,7 @@ function modpol.interactions.org_dashboard(user, org_string)
local processes = {} local processes = {}
for i,v in ipairs(org.processes) do for i,v in ipairs(org.processes) do
if v ~= "deleted" then if v ~= "deleted" then
processes[i] = org.processes[v] processes[i] = org.processes[i]
end end
end end
local process_msg = #processes .. " total processes" local process_msg = #processes .. " total processes"
@@ -346,14 +346,14 @@ function modpol.interactions.display(user, title, message, completion)
modpol.interactions.message( modpol.interactions.message(
self.initiator, "Error: input not typed for display") self.initiator, "Error: input not typed for display")
if completion then completion() else if completion then completion() else
modpol.intereactions.dashboard(user) modpol.interactions.dashboard(user)
end end
end end
print(message) print(message)
print("\nEnter to continue") print("\nEnter to continue")
io.read() io.read()
if completion then completion() else if completion then completion() else
modpol.intereactions.dashboard(user) modpol.interactions.dashboard(user)
end end
end end