Skip to content

Commit

Permalink
Fix entering blank names as DisplayName
Browse files Browse the repository at this point in the history
by disallowing this ability essentially
  • Loading branch information
poco0317 committed Jun 10, 2019
1 parent b84d391 commit a5a5446
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Themes/Til Death/BGAnimations/_PlayerInfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ local AvatarY = SCREEN_HEIGHT - 50
local playerRating = 0

local setnewdisplayname = function(answer)
profile:RenameProfile(answer)
profileName = answer
MESSAGEMAN:Broadcast("ProfileRenamed", {doot = answer})
if answer ~= "" then
profile:RenameProfile(answer)
profileName = answer
MESSAGEMAN:Broadcast("ProfileRenamed", {doot = answer})
end
end

local function highlight(self)
Expand Down

0 comments on commit a5a5446

Please sign in to comment.