Merge pull request #730 from Flamanis/Fix-realms-with-dashes

Fix dashes and spaces in player realm name
This commit is contained in:
Tercio Jose
2024-05-19 22:28:34 -03:00
committed by GitHub
+1 -1
View File
@@ -6200,7 +6200,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():gsub("%s", ''))
Details.playername = UnitName("player") .. "-" .. (GetRealmName():gsub("[%s-]", ''))
else
Details.playername = UnitName("player")
end