View Single Post
03-07-14, 09:52 AM   #9
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by Zax View Post
I don't know why but UnitFullName("player") sometimes returns NIL if called just after the VARIABLES_LOADED event, <snip>
Realm "Confrérie du Thorium" is shortened in "ConfrérieduThorium" (which means Thorium brotherhood )
That's because VARIABLES_LOADED is a bad event to use for addon initialization and has been bad since WoW 3.1 or something like that

You either want ADDON_LOADED with arg1 == 'YourAddonName' which guarantees saved variables initialization but not much else or even better PLAYER_LOGIN which ensures player information (including name / realm) are available.

Last edited by Dridzt : 03-07-14 at 06:50 PM.
  Reply With Quote