Skip to content

Commit

Permalink
Remove spaces from manually added names in player management
Browse files Browse the repository at this point in the history
  • Loading branch information
linaori committed Mar 13, 2024
1 parent bd22a5a commit 2a12351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Changelog.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
local _, Namespace = ...

Namespace.Changelog = {
{
version = '10.2.5-46',
improvements = {
'Remove spaces from the input when manually adding a character, this makes it harder to make accidental mistakes when the realm has a space, or when the input contains a space around the dash sign',
},
},
{
version = '10.2.5-45',
features = {
Expand Down
1 change: 1 addition & 0 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function Namespace.Config.AddPlayerConfig(playerName)
return
end

playerName = playerName:gsub(' ', '')
local config = Namespace.BattlegroundTools:GetPlayerConfig(playerName)
if config then
return Namespace.Addon:OpenPlayerConfig(playerName)
Expand Down

0 comments on commit 2a12351

Please sign in to comment.