diff --git a/Changelog.lua b/Changelog.lua index 9f3d46f..cb468f0 100644 --- a/Changelog.lua +++ b/Changelog.lua @@ -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 = { diff --git a/Config.lua b/Config.lua index f9dc6c9..c217550 100644 --- a/Config.lua +++ b/Config.lua @@ -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)