changeset 11:03e2d9edc344

Fixed the ability to toggle debug
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 30 Jun 2010 22:56:06 -0700
parents c79ede3c7b82
children 6a6296dd249f
files Modules/Utils.lua
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/Utils.lua	Fri Jun 25 22:03:44 2010 -0700
+++ b/Modules/Utils.lua	Wed Jun 30 22:56:06 2010 -0700
@@ -93,19 +93,16 @@
    return n
 end
 
-
-
 function addon:GetDebug(info)
-	return true
-	-- return self.db.char.debug
+	return self.db.char.debug
 end
 
 function addon:SetDebug(info, input)
-	self:Print("Debugging is now: " .. value)
-	self.db.char.debug = input
+	
+	ItemAuditor.db.char.debug = input
 	local value = "off"
 	if input then
 		value = "on"
 	end
-	
+	self:Print("Debugging is now: " .. value)
 end