View Single Post
Unread 05-22-13, 06:32 AM   #3
ravagernl
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,145
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
ravagernl is offline   Reply With Quote