View Single Post
12-30-13, 06:18 PM   #13
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
local function ColorBNetWhispers(self,event,message,sender,...)
	local args = { ... }
	...
	local toonInfo = { BNGetToonInfo(presenceID) }
What is this, I don't even... why on earth are you creating all these tables instead of just using variables?! ಠ_ಠ

Code:
local function ColorBNetWhispers(self, event, message, sender, _, _, _, flags, _, _, _, _, lineID, _, presenceID)
	...
	local hasFocus, toonName, client, realmName, realmID, faction, race, class, guild, zoneName, level, gameText, broadcastText, broadcastTime, canSoR, toonID = BNGetToonInfo(presenceID)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote