View Single Post
12-31-13, 02:37 PM   #19
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by Phanx View Post
Code:
addonData.XRICEvents:SetScript("OnEvent",function(self,event,...)
    local args = { ... }
Stop doing this! Tables bad. Variables good. Use variables. No use tables.

See here for a quick and untested (but clean) conversion of the relevant parts of PhanxChat into a standalone addon:
http://www.wowace.com/paste/lmszetyg58bn621q/
Is line 80 supposed to read like that? Won't this throw an error?
Code:
local firstName = local short = gsub(realName, "|Kf", "|Kg")
EDIT: Shouldn't it be
Code:
local firstName = gsub(realName, "|Kf", "|Kg")
__________________
All I see is strobe lights blinding me in my hindsight.

Last edited by Wimpface : 12-31-13 at 02:43 PM.
  Reply With Quote