View Single Post
05-22-13, 06:32 AM   #3
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by SDPhantom View Post
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
  Reply With Quote