mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
chatcopy: skip while chat module is not loaded
This commit is contained in:
@@ -3,6 +3,8 @@ pfUI:RegisterModule("chatcopy", "vanilla:tbc", function ()
|
||||
local f = CreateFrame("Frame")
|
||||
f:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
f:SetScript("OnEvent", function()
|
||||
if not pfUI.chat then return end
|
||||
|
||||
local button = CreateFrame("Button", "pfChatCopyButton", pfUI.chat.left.panelTop)
|
||||
button:SetPoint("TOPRIGHT", 0, 0)
|
||||
button:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
||||
|
||||
Reference in New Issue
Block a user