Skip to content

Commit

Permalink
Fix for login error on connected realms
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Feb 13, 2022
1 parent 72202e2 commit 11f7692
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,17 @@ function LootReserve:Player(player)
local name, realm = strsplit("-", player);
if not realm then
realm = GetNormalizedRealmName();
if not realm then
-- it really does happen
realm = GetRealmName();
if realm then
realm = realm:gsub("[%s%-]", "");
end
if not realm then
-- ¯\_(ツ)_/¯
return name;
end
end
end
return name .. "-" .. realm;
end
Expand Down

0 comments on commit 11f7692

Please sign in to comment.