From 455514a65a8eceb3fa0f83c0849dad2bb4fbffe2 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 6 Dec 2020 20:13:33 +0100 Subject: [PATCH] roll: use native insert link function when possible --- modules/roll.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/roll.lua b/modules/roll.lua index b6a741e3..da0e3ec6 100644 --- a/modules/roll.lua +++ b/modules/roll.lua @@ -109,7 +109,9 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function () if IsControlKeyDown() then DressUpItemLink(GetLootRollItemLink(this:GetParent().rollID)) elseif IsShiftKeyDown() then - if ChatFrameEditBox:IsVisible() then + if ChatEdit_InsertLink then + ChatEdit_InsertLink(GetLootRollItemLink(this:GetParent().rollID)) + elseif ChatFrameEditBox:IsVisible() then ChatFrameEditBox:Insert(GetLootRollItemLink(this:GetParent().rollID)) end end