diff LibFarmbuyer.lua @ 56:fcc0d0ff5832

- instance_tag() also returns max instance size as a plain number, adjust call sites - clean up .raiders table, add some new fields, use copies of this instead of a single string - make sure datarev field is properly updated when it's already present - avoid multiple GetRaidRosterInfo loops scattered throughout the addon, instead just traverse the .raiders list, regularly updated - make the 'loot' and 'boss' broadcasts versioned. Handle receiving older. - new format for plaintext attendance output
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 13 Apr 2012 04:28:46 +0000
parents 7af58a7dce7d
children 81d5449621f8
line wrap: on
line diff
--- a/LibFarmbuyer.lua	Sat Apr 07 05:40:20 2012 +0000
+++ b/LibFarmbuyer.lua	Fri Apr 13 04:28:46 2012 +0000
@@ -54,7 +54,7 @@
   Ditto for table recycling.
 ]]
 
-local MAJOR, MINOR = "LibFarmbuyer", 15
+local MAJOR, MINOR = "LibFarmbuyer", 16
 assert(LibStub,MAJOR.." requires LibStub")
 local lib = LibStub:NewLibrary(MAJOR, MINOR)
 if not lib then return end
@@ -102,7 +102,7 @@
 --[[
 	safeprint
 ]]
-local tconcat = table.concat
+local tconcat, tostring, tonumber = table.concat, tostring, tonumber
 local function undocontrol(c)
 	return ("\\%.3d"):format(c:byte())
 end
@@ -139,7 +139,7 @@
 		t[i] = tostring(t[i]):gsub('\124','\124\124')
 		                     :gsub('(%c)', undocontrol)
 	end
-	local msg = tconcat(t,' ', i, tonumber(t.n) or #t)
+	local msg = tconcat(t,' ', 1, tonumber(t.n) or #t)
 	if type(f) == 'function' then
 		return msg,f(msg)
 	else