Quantcast

Item and recipe linking to chat now works for 3.3.5 - 3.3.3 compatibility was left in for EU clients until they patch up.

James D. Callahan III [06-23-10 - 05:06]
Item and recipe linking to chat now works for 3.3.5 - 3.3.3 compatibility was left in for EU clients until they patch up.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 0bc53ec..a95c693 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2281,7 +2281,14 @@ do
 					local _, itemLink = _G.GetItemInfo(itemID)

 					if itemLink then
-						_G.ChatFrameEditBox:Insert(itemLink)
+						if tonumber(private.build_num) < 12213 then
+							_G.ChatFrameEditBox:Insert(itemLink)
+						else
+							local edit_box = _G.ChatEdit_ChooseBoxForSend()
+
+							_G.ChatEdit_ActivateChat(edit_box)
+							edit_box:Insert(itemLink)
+						end
 					else
 						addon:Print(L["NoItemLink"])
 					end
@@ -2289,7 +2296,14 @@ do
 					addon:Print(L["NoItemLink"])
 				end
 			elseif _G.IsControlKeyDown() then
-				_G.ChatFrameEditBox:Insert(GetSpellLink(private.recipe_list[clicked_line.recipe_id].spell_id))
+				if tonumber(private.build_num) < 12213 then
+					_G.ChatFrameEditBox:Insert(GetSpellLink(private.recipe_list[clicked_line.recipe_id].spell_id))
+				else
+					local edit_box = _G.ChatEdit_ChooseBoxForSend()
+
+					_G.ChatEdit_ActivateChat(edit_box)
+					edit_box:Insert(GetSpellLink(private.recipe_list[clicked_line.recipe_id].spell_id))
+				end
 			elseif _G.IsAltKeyDown() then
 				local exclusion_list = addon.db.profile.exclusionlist
 				local recipe_id = clicked_line.recipe_id