View Single Post
04/24/15, 01:16 PM   #7
stAjora
Join Date: Apr 2015
Posts: 20
Originally Posted by Ayantir View Post
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:
  1. -- Registering librairies
  2. local LC = LibStub('libChat-1.0')
  3. LC:registerName(deleteifnotafriend, "myAddon")
  4.  
  5. local function deleteifnotafriend(channelId, from)
  6.  
  7.     -- will delete all messages wich don't come from a friend
  8.     if (not IsFriend()) return false end
  9.    
  10.    -- if friend, just return from
  11.    return from
  12.  
  13. 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.
  Reply With Quote