Originally Posted by Ayantir
They're for GM's when they talk to you (sometimes).
You cannot use them, because nobody listens on them.. except gm's.
And no, you can't use them to send messages, because we can't "join" "users channels".
--
If you want to block messages, you can use a library that I wrote, libChat2
Here you can register library with the parameter you're interested in.
ex :
Lua Code:
-- Registering librairies local LC = LibStub('libChat-1.0') LC:registerName(deleteifnotafriend, "myAddon") local function deleteifnotafriend(channelId, from) -- will delete all messages wich don't come from a friend if (not IsFriend()) return false end -- if friend, just return from return from end
|
I got the library and example function registered and working but how do I specify that the effect should only take place in one type of chat window /zone /say /guild etc. ? Currently (the block function example) works for every chat window. What I'm trying to do is detect certain words in a /whisper message and stop them from being displayed.