Mercurial > wow > itemauditor
comparison Modules/Utils.lua @ 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 | 374dd1a90d02 |
| children | 44e70a3fdb19 |
comparison
equal
deleted
inserted
replaced
| 10:c79ede3c7b82 | 11:03e2d9edc344 |
|---|---|
| 91 end | 91 end |
| 92 end | 92 end |
| 93 return n | 93 return n |
| 94 end | 94 end |
| 95 | 95 |
| 96 | |
| 97 | |
| 98 function addon:GetDebug(info) | 96 function addon:GetDebug(info) |
| 99 return true | 97 return self.db.char.debug |
| 100 -- return self.db.char.debug | |
| 101 end | 98 end |
| 102 | 99 |
| 103 function addon:SetDebug(info, input) | 100 function addon:SetDebug(info, input) |
| 104 self:Print("Debugging is now: " .. value) | 101 |
| 105 self.db.char.debug = input | 102 ItemAuditor.db.char.debug = input |
| 106 local value = "off" | 103 local value = "off" |
| 107 if input then | 104 if input then |
| 108 value = "on" | 105 value = "on" |
| 109 end | 106 end |
| 110 | 107 self:Print("Debugging is now: " .. value) |
| 111 end | 108 end |
