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)
+1 -1
View File
@@ -607,7 +607,7 @@ do
{type = "label", get = function() return Loc ["STRING_OPTIONS_SOCIAL"] end, text_template = subSectionTitleTextTemplate},
{--nickname
type = "textentry",
get = function() return Details:GetNickname(_G.UnitName("player"), _G.UnitName("player"), true) or "" end,
get = function() return Details:GetNickname(Details.playername, _G.UnitName("player"), true) or "" end,
func = function(self, _, text)
local accepted, errortext = Details:SetNickname(text)
if (not accepted) then