Originally Posted by Zax
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.