view print_log.lua @ 37:cd745a18d7c7

Mostly code cosmetic tweaks. Split up EOI and History dropdown tables. Draw attention to realm names in popups, as they don't have to match the currently-played realm.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Sat, 10 Dec 2011 01:04:16 +0000
parents f560cf82e7d3
children 8f7ec6ccf5e3
line wrap: on
line source
#!/usr/bin/env lua

if not arg[1] or arg[1] == "" then
	print"Usage:  lua print_log.lua /path/to/OuroLoot_savedvars.lua"
	print"Don't forget to delete log table after viewing!"
	os.exit(1)
end

dofile(arg[1])

if type(OuroLootSV_log) ~= 'table' then
	print("Did not find OuroLootSV_log in", arg[1])
	os.exit(1)
end

for _,v in ipairs(OuroLootSV_log) do
	print(v)
end

os.exit(0)

-- vim:noet ff=unix