Originally Posted by JDoubleU00
What does the |H do? Look for hyperlinks? I was trying to find documentation, but my GoogleFu is weak, any pointers there would be appreciated also.
Code:
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", function(_, _, message, _, _, _, _, _, _, _, channel)
if channel == "Trade - City" and not message:find("|H") then
return true
end
end)
|
In short, what this code is doing is registering a filter to check if a message in trade chat contains a link. If it doesn't find one, it tells the ChatFrame to ignore the message. It's crude and easily defeated by anyone that actually types "|H" in chat, which will be read in as "||H".