• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 61: Line 61:  
function log(message, value)
 
function log(message, value)
 
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
 
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
 +
end
 +
 +
if not args.nodes then
 +
log('info', 'empty table')
 +
return tbl
 
end
 
end
    
-- header args
 
-- header args
 
local boss = args.boss and string.upper(args.boss) or '?'
 
local boss = args.boss and string.upper(args.boss) or '?'
for node_ in args.nodes and string.gmatch(args.nodes, args_grammar.comma_list) or pairs({}) do
+
for node_ in string.gmatch(args.nodes, args_grammar.comma_list) do
 
local node = node_:match(args_grammar.node)
 
local node = node_:match(args_grammar.node)
 
if node then
 
if node then
cssedit, gkautomate
6,928

edits

Navigation menu