diff --git a/boot.lua b/boot.lua index ab63e19e..786649ca 100644 --- a/boot.lua +++ b/boot.lua @@ -13,8 +13,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 12031 - Details.alpha_build_counter = 12031 --if this is higher than the regular counter, use it instead + Details.build_counter = 12032 + Details.alpha_build_counter = 12032 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/functions/classes.lua b/functions/classes.lua index 1ba51867..36f9fbe6 100644 --- a/functions/classes.lua +++ b/functions/classes.lua @@ -210,7 +210,10 @@ do --UnitFullName is guarantee to return the realm name of the unit queried local playerName, realmName = UnitFullName(unitId) if (playerName) then - realmName = realmName:gsub("%s", "") + if (not realmName) then + realmName = GetRealmName() + end + realmName = realmName:gsub("[%s-]", "") playerName = playerName .. "-" .. realmName