chg: skip if not debug
This commit is contained in:
@@ -455,7 +455,7 @@ local function find( main, sub)
|
|||||||
main = main:lower()
|
main = main:lower()
|
||||||
sub = sub:lower()
|
sub = sub:lower()
|
||||||
for k, v in pairs(_names) do
|
for k, v in pairs(_names) do
|
||||||
if ( v[2]:lower() == main and v[3]:lower() == sub) then
|
if ( v[2]:lower() == main and v[3]:lower() == sub) then
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ local bxor = bit32.bxor
|
|||||||
---
|
---
|
||||||
-- A debug printout-function
|
-- A debug printout-function
|
||||||
local function dbg(args)
|
local function dbg(args)
|
||||||
|
if not DEBUG then return end
|
||||||
|
|
||||||
if type(args) == "table" then
|
if type(args) == "table" then
|
||||||
local i = 1
|
local i = 1
|
||||||
while args[i] do
|
while args[i] do
|
||||||
|
|||||||
Reference in New Issue
Block a user