From 529e5e16273dcc0547ba2fb4f47fb3d79f7d5261 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 23 Jun 2010 01:06:23 -0400 Subject: [PATCH] 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. --- Frame.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 -- 1.7.9.5