Thread Tools Display Modes
05-30-06, 12:56 AM   #1
Jakobud
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 5
Question How to suppress CHAT WHISPERS? Like CTRA does?

Hey guys, I'm taking a look at the code for CTRaidAssist. Specifically I'm looking at the auto-invite functionality. It's where someone whispers the raid leader a keyword like this:

/w jakobud invite

and then the raid leader automatically sees the keyword and invites them.

However, if you are the raid leader and someone whispers the auto-invite keyword to you, you do NOT see the whisper. All you see is some text in your chat field from CTRA that says "Auto-inviting whoever to the raid" or something similar. You never see the actual whisper from the person in chat.

I'm looking at the code for CTRA and I don't understand how they are suppressing that chat whisper from actually being displayed in the raid leaders chat window. Any thoughts?
  Reply With Quote
05-30-06, 04:32 AM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
local oldChatFrame_OnEvent = ChatFrame_OnEvent
function ChatFrame_OnEvent(event)
if event~="CHAT_MSG_WHISPER" or arg1~="invite" then
oldChatFrame_OnEvent(event)
end
end

will let everything except CHAT_MSG_WHISPERs of "invite" through.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to suppress CHAT WHISPERS? Like CTRA does?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off