From 84fe195a41f5960a7d6c5811d96893dc38cff37f Mon Sep 17 00:00:00 2001 From: Andriel Chaoti <3628387+AndrielChaoti@users.noreply.github.com> Date: Fri, 10 Nov 2023 09:33:47 -0700 Subject: [PATCH] fixed syntax error --- unforbid.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/unforbid.lua b/unforbid.lua index 1177e3148f..6089dd4549 100644 --- a/unforbid.lua +++ b/unforbid.lua @@ -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) @@ -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