Closed Meorawr closed 3 years ago
This ends up working since NameMergedRealm queries GetRealmName internally, and Blizzard for whatever genius reason make that work on first login but not GetNormalizedRealmName.
Doesn't change the fact these things probably shouldn't be relied upon, however changing it is likely to break things so we can probably wait until we're actually pushed.
https://github.com/wow-rp-addons/LibMSP/blob/bce4aeb4865c4a7fa2148315fdb89cd5f8bf1116/LibMSP.lua#L66
Realm name information provided by
UnitFullName
(andGetNormalizedRealmName
) isn't available untilPLAYER_LOGIN
has fired.Querying it in the script body means MSP may or may not have issues on the initial login of a player in some contexts, but given things have worked fine so far it may also be that this variable missing realm information isn't actually a big deal. Either way it should be fixed.