1
0
Fork 0

Allow user to change the abbreviation for a specific instance.

This commit is contained in:
Andrew Tomaka 2011-09-21 11:36:24 -04:00
parent 9b31a2f28f
commit 50edab43d8

View file

@ -66,7 +66,7 @@ local options = {
args = { args = {
instance = { instance = {
name = 'Add instance to track.', 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', type = 'input',
set = function(info, value) db.profile.instances[value] = '' end, set = function(info, value) db.profile.instances[value] = '' end,
}, },
@ -169,8 +169,8 @@ function core:OnEnable()
options.args.instances.args[instance] = { options.args.instances.args[instance] = {
type = 'input', type = 'input',
name = instance, name = instance,
get = function(info) return db.profile.instances[info] end, get = function(info) return db.profile.instances[info[#info]] end,
set = function(info, value) db.profile.instances[info] = value end, set = function(info, value) db.profile.instances[info[#info]] = value end,
} }
end end