View Single Post
04/30/17, 07:22 AM   #1
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
[outdated] Function GetCurrentCharacterName() (or WhoAmI() for short)

By now I know that I can just zo_strFormat(GetUnitName('player')), but I've coded a lot of workarounds back when I didn't, and it's still two function calls instead of one. I bet you're holding that somewhere in the cache anyway?
Could you maybe give us a direct access to that, without having to manually shove it into the strformat?

Also, WhoAmI() would be a nice way to de-spaghetti long code!