Skip to content

Commit

Permalink
fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrielChaoti committed Nov 10, 2023
1 parent b950abe commit 84fe195
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions unforbid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ local argparse = require('argparse')

local function unforbid_all(include_unreachable, quiet, include_worn)
local p
if quiet then p=function(s) return end; else p=function(s) return print(s) end; end

if quiet then
p=function(s) return end;
else
p=function(s) return print(s) end;
end
p('Unforbidding all items...')

local citizens = dfhack.units.getCitizens(true)
Expand Down Expand Up @@ -40,7 +43,7 @@ local function unforbid_all(include_unreachable, quiet, include_worn)
end
end

p(('%d items unforbidden'):format(count)) end
p(('%d items unforbidden'):format(count))
end

-- let the common --help parameter work, even though it's undocumented
Expand Down

0 comments on commit 84fe195

Please sign in to comment.