Originally Posted by SDPhantom
It would be easier if you posted a copy of the working code as-is. Be sure to encase it in [code] tags.
|
I'm thinking it's something like
Code:
function(unit)
local name = UnitName(unit) or unit
name = name:gsub('(%S+) ',function(t) return t:sub(1,1)..'.' end)
return name
end