aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-26 16:56:38 +1000
committerDavid Walter Seikel2014-03-26 16:56:38 +1000
commitddeed9881198846c74eb71afcf018d62a6bfa2a7 (patch)
treea7f16c00edf6286fab23b57d50ba8780c21ed64f /ClientHamr/GuiLua/skang.lua
parentAdd my standard isBoolean(). (diff)
downloadSledjHamr-ddeed9881198846c74eb71afcf018d62a6bfa2a7.zip
SledjHamr-ddeed9881198846c74eb71afcf018d62a6bfa2a7.tar.gz
SledjHamr-ddeed9881198846c74eb71afcf018d62a6bfa2a7.tar.bz2
SledjHamr-ddeed9881198846c74eb71afcf018d62a6bfa2a7.tar.xz
Use isBoolean() for thing.required.
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua2
1 files changed, 1 insertions, 1 deletions
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
318 318
319 -- Set it all up. 319 -- Set it all up.
320 -- TODO - might want to merge into pre existing Thing instead of over writing like this. 320 -- TODO - might want to merge into pre existing Thing instead of over writing like this.
321 local thing = {module = module, names = n, help = help, default = default, types = t, widget = widget, required = required, acl = acl, boss = boss, } 321 local thing = {module = module, names = n, help = help, default = default, types = t, widget = widget, required = isBoolean(required), acl = acl, boss = boss, }
322 setmetatable(thing, Thing) 322 setmetatable(thing, Thing)
323 -- Stash the Thing under all of it's names. 323 -- Stash the Thing under all of it's names.
324 for i, v in ipairs(thing.names) do 324 for i, v in ipairs(thing.names) do