Fix for realms with spaces and pets

This commit is contained in:
Flamanis
2023-11-07 22:23:01 -06:00
parent 466c67aea4
commit 761eaac2d1
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -6108,7 +6108,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
local _, _, _, toc = GetBuildInfo()
if (toc >= 100200) then
Details.playername = UnitName("player") .. "-" .. GetRealmName()
Details.playername = UnitName("player") .. "-" .. (GetRealmName():gsub("%s", ''))
else
Details.playername = UnitName("player")
end