diff Core.lua @ 55:234896be4087

Adding an option to direct ItemAuditor output to a different chat frame
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 22 Jul 2010 23:17:57 -0700
parents a66f6fc57cfb
children bdf3aba93aa9
line wrap: on
line diff
--- a/Core.lua	Wed Jul 21 22:40:21 2010 -0700
+++ b/Core.lua	Thu Jul 22 23:17:57 2010 -0700
@@ -18,6 +18,7 @@
 			use_quick_auctions = false,
 			crafting_threshold = 1,
 			auction_threshold = 0.15,
+			output_chat_frame = nil,
 		},
 		profile = {
 			messages = {
@@ -109,8 +110,7 @@
 local printPrefix = "|cFFA3CEFFItemAuditor|r: "
 function addon:Print(message, ...)
 	message = format(message, ...)
-	DEFAULT_CHAT_FRAME:AddMessage( printPrefix .. tostring(message))
-	self:Log(message)
+	self:GetSelectedChatWindow():AddMessage( printPrefix .. tostring(message))
 end
 
 function addon:GetCurrentInventory()