Replace spaces in character names with dashes when auto-generating bind sets

Amber Yust [04-17-14 - 02:04]
Replace spaces in character names with dashes when auto-generating bind sets
Filename
Binder.lua
diff --git a/Binder.lua b/Binder.lua
index 8776d49..39c42e2 100644
--- a/Binder.lua
+++ b/Binder.lua
@@ -198,7 +198,7 @@ function Binder.SaveAutomaticBindings(isSilent)
     local setName = Binder.savedVariables.autoSets[character]

     if setName == nil then
-        setName = character .. "-auto"
+        setName = character:gsub(" ", "-") .. "-auto"
         Binder.savedVariables.autoSets[character] = setName
     end