mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
thirdparty: check for pfUI chat before using it
This commit is contained in:
@@ -448,9 +448,12 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
|
||||
HookAddonOrVariable("WIM", function()
|
||||
if C.thirdparty.wim.enable == "0" then return end
|
||||
|
||||
_G.WIM_isLinkURL = function() return false end
|
||||
_G.WIM_ConvertURLtoLinks = function(text) -- use pfUI link handler (it is more correct)
|
||||
return pfUI.chat:HandleLink(text)
|
||||
-- use pfUI link handler if available
|
||||
if pfUI.chat then
|
||||
_G.WIM_isLinkURL = function() return false end
|
||||
_G.WIM_ConvertURLtoLinks = function(text)
|
||||
return pfUI.chat:HandleLink(text)
|
||||
end
|
||||
end
|
||||
|
||||
-- replace wim class colors with pfUI ones
|
||||
|
||||
Reference in New Issue
Block a user