tekkub (owner)

Revisions

gist: 9805 Download_button fork
public
Public Clone URL: git://gist.github.com/9805.git
Embed All Files: show embed
clfixer.lua #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local mypatch, mybuild = "3.0.2", "8905"
local version, build = GetBuildInfo()
if version ~= mypatch or build ~= mybuild then
return ChatFrame1:AddMessage("|cFF33FF99ChatLinkFix|r: This addon is only designed to work with patch "..mypatch.." build "..mybuild..
". If the bug is not fixed, please check for an updated version.")
end
 
local orig = ChatFrame_OnHyperlinkShow
 
function ChatFrame_OnHyperlinkShow(self, link, text, button, ...)
local linkType, linkvalue = string.split(":", link)
if linkType == "item" and IsModifiedClick("DRESSUP") then return DressUpItemLink(linkvalue) end
if not IsModifiedClick("CHATLINK") then return orig(self,link, text, button, ...) end
if linkType == "player" then return ChatFrameEditBox:IsVisible() and ChatEdit_InsertLink(linkvalue) or SendWho(linkvalue) end
if linkType == "spell" then text = GetSpellLink(linkvalue) end
 
ChatFrameEditBox:Show()
ChatEdit_InsertLink(text)
end