Quantcast

Don't allow spaces in bar name

Scott Sibley [09-10-10 - 14:58]
Don't allow spaces in bar name
Filename
Modules/Bars.lua
diff --git a/Modules/Bars.lua b/Modules/Bars.lua
index cbbf065..5606ddd 100644
--- a/Modules/Bars.lua
+++ b/Modules/Bars.lua
@@ -266,7 +266,7 @@ function mod:RebuildOpts()
 	local defaults = WidgetBar.defaults

 	for k, db in pairs(self.db.profile.bars) do
-		options.bars.args[k] = {
+		options.bars.args[k:gsub(" ", "_")] = {
 			name = k,
 			type="group",
 			order = 6,