From ddeed9881198846c74eb71afcf018d62a6bfa2a7 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 26 Mar 2014 16:56:38 +1000 Subject: Use isBoolean() for thing.required. --- ClientHamr/GuiLua/skang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ClientHamr') diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index d8f0343..c9a58ff 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -318,7 +318,7 @@ thing = function (module, names, help, default, types, widget, required, acl, bo -- Set it all up. -- TODO - might want to merge into pre existing Thing instead of over writing like this. - local thing = {module = module, names = n, help = help, default = default, types = t, widget = widget, required = required, acl = acl, boss = boss, } + local thing = {module = module, names = n, help = help, default = default, types = t, widget = widget, required = isBoolean(required), acl = acl, boss = boss, } setmetatable(thing, Thing) -- Stash the Thing under all of it's names. for i, v in ipairs(thing.names) do -- cgit v1.1