documentation

This commit is contained in:
Luke Miller 2021-06-14 17:32:59 -04:00
parent 6de2be011f
commit 12623ee4a2

View File

@ -53,8 +53,10 @@ end
-- ========================
-- removes a pending action from the org's table
function modpol.orgs:remove_pending_action(process_id, user, action)
-- cautiously checks if pending action exists before removing it
if self.pending[user] then
if self.pending[user][process_id] then
-- searching for action to remove
for i, a in pairs(self.pending[user][process_id]) do
if a == action then
self.pending[user][process_id][i] = nil