Mercurial > wow > itemauditor
diff Core.lua @ 22:66b7c3f5937e
I have removed the ability to show debug messages in the chat window and have replaced it with a new debug frame. /ia debug will show all of the debug messages and everything that IA has printed. This commit also has a small fix so that if you sell something for your exact cost you don't get a message that you made a profit of 0c.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 08 Jul 2010 19:30:30 -0700 |
parents | d7f02c84994c |
children | 819bfdc5d73c |
line wrap: on
line diff
--- a/Core.lua Tue Jul 06 23:48:54 2010 -0700 +++ b/Core.lua Thu Jul 08 19:30:30 2010 -0700 @@ -24,7 +24,6 @@ }, profile = { messages = { - debug = false, cost_updates = true, queue_skip = false, } @@ -66,6 +65,7 @@ function addon:Print(message) local prefix = "|cFFA3CEFF"..tostring( self ).."|r: " DEFAULT_CHAT_FRAME:AddMessage( prefix .. tostring(message)) + self:Log(message) end function addon:GetCurrentInventory() @@ -243,7 +243,7 @@ end if abs(value) > 0 then - if item.invested <= 0 then + if item.invested < 0 then if self.db.profile.messages.cost_updates then self:Print(format("Updated price of %s from %s to %s. %sYou just made a profit of %s.", itemName, self:FormatMoney(item.invested - value), self:FormatMoney(0), GREEN, self:FormatMoney(abs(item.invested)))) end