All pastes #70404 Raw Edit

Kaelten

public lua v1 · immutable
#70404 ·published 2006-06-24 06:01 UTC
rendered paste body
function AceDebug:Debug(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20)		if not self.debugging then return end		local r, g, b, frame, delay, a0		local output = string.format("|cff329555(DEBUG) %s:|r ", self.title or "Nameless Addon")		if( type(a1) == "table" ) then		r,g,b,frame,delay = unpack(a1)	else		a0 = a1	end		if string.find(a0 or a2, "%%") then		if a0 then			output = output .. string.format(a0, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20)		else			output = output .. string.format(a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20)		end	else		local x = ""		output = output .. string.format("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s", a0 or x, a2 or x, a3 or x, a4 or x, a5 or x, a6 or x, a7 or x, a8 or x, a9 or x, a10 or x, a11 or x, a12 or x, a13 or x, a14 or x, a15 or x, a16 or x, a17 or x, a18 or x, a19 or x, a20 or x)	end				(frame or DEFAULT_CHAT_FRAME):AddMessage(output, r, g, b, 1, delay or 5)end