Force Nicktag to include realm name on retail

This commit is contained in:
Flamanis
2023-11-08 23:56:35 -06:00
parent 5e7df0d94a
commit bc0070cc6d
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -585,7 +585,11 @@ end
--here we format the text to match titles, e.g converts name like "JASON NICKSHOW" into "Jason Nickshow".
name = name:gsub ("(%a)([%w_']*)", titlecase)
local playerName = UnitName ("player")
local playerName, realmName = UnitFullName ("player")
if(select(4, GetBuildInfo()) >= 100200) then
playerName = playerName .. '-' .. realmName
end
--get the full nick table.
local nickTable = NickTag:GetNicknameTable (playerName)