mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +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()
|
HookAddonOrVariable("WIM", function()
|
||||||
if C.thirdparty.wim.enable == "0" then return end
|
if C.thirdparty.wim.enable == "0" then return end
|
||||||
|
|
||||||
_G.WIM_isLinkURL = function() return false end
|
-- use pfUI link handler if available
|
||||||
_G.WIM_ConvertURLtoLinks = function(text) -- use pfUI link handler (it is more correct)
|
if pfUI.chat then
|
||||||
return pfUI.chat:HandleLink(text)
|
_G.WIM_isLinkURL = function() return false end
|
||||||
|
_G.WIM_ConvertURLtoLinks = function(text)
|
||||||
|
return pfUI.chat:HandleLink(text)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- replace wim class colors with pfUI ones
|
-- replace wim class colors with pfUI ones
|
||||||
|
|||||||
Reference in New Issue
Block a user