From 50edab43d83bb933f315fbe80d5ca9876bcb332e Mon Sep 17 00:00:00 2001 From: atomaka Date: Wed, 21 Sep 2011 11:36:24 -0400 Subject: [PATCH] Allow user to change the abbreviation for a specific instance. --- ChoreTracker.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 5b8ec36..a09a323 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -66,7 +66,7 @@ local options = { args = { instance = { name = 'Add instance to track.', - desc = 'Etner an instance on a seven day lockout that you would like ChoreTracker to track.', + desc = 'Enter an instance on a seven day lockout that you would like ChoreTracker to track.', type = 'input', set = function(info, value) db.profile.instances[value] = '' end, }, @@ -169,8 +169,8 @@ function core:OnEnable() options.args.instances.args[instance] = { type = 'input', name = instance, - get = function(info) return db.profile.instances[info] end, - set = function(info, value) db.profile.instances[info] = value end, + get = function(info) return db.profile.instances[info[#info]] end, + set = function(info, value) db.profile.instances[info[#info]] = value end, } end