View Single Post
10-20-05, 01:32 PM   #2
Gorak
A Fallenroot Satyr
Join Date: Oct 2005
Posts: 21
Hmm..

Since most players use the primary chat frame to receive and send chat messages, a viable solution might be to use the new 1.8. script replacement functions to get a local copy of the OnEvent handler for the chat frame.

You would then proceed to filter CHAT_MSG_WHISPER messages, if the sender's name does not contain <GM> prefix tag, which all Game Masters have. If such a tag is detected, the old routine is called.

Using a script hooker is better for two reasons, as it doesn't clump up your ignore list, and it can be easily detached to allow the messages flow through again. Naturally, this solution will cause problems if another add-on manages to hook the handler first, and is dependant on whisper messages, such as auto-buff-on-whisper add-ons.
  Reply With Quote