Poster: Cirk at 1/8/2006 2:57:07 PM PST Subject: Slouken: ChatFrames not getting NOTICE events |
| |
Note sure if best place to post this, but anyway... :D
In the ChatFrame_OnEvent function there is code to handle CHAT_MSG_CHANNEL_NOTICE and CHAT_MSG_CHANNEL_NOTICE_USER events, but apart from ChatFrame1 these messages aren't being received by the chat windows (i.e., ChatFrame2, ChatFrame3, etc. don't get these messages).
You can setup a simple test for this (when not using simple chat):
1. Create a new chat tab if you don't already have one.
2. /join a new channel (e.g., chattest)
3. Right-click on the new chat tab and set it to receive messages from your new channel.
4. Test (3) by sending something on the new channel (e.g., /csay chattest testing!).
5. Change the password on your new channel (NOTICE_USER event) and see that there is no "password changed" message shown on the new tab.
6. Leave your new channel (NOTICE event) and see that there is no "left channel" message shown on the new tab.
7. Rejoin your test channel (e.g., do /join chattest again).
8. See that your new chat tab still thinks it is filtering for this channel (right click menu) because it never received the NOTICE event for the YOU_LEFT condition).
9. Logout and in again and see that your new chat tab now no longer filters for your test channel (because the client thought it wasn't filtering for the new channel anymore, even though the UI showed it at step 8).
Logging out and in between steps (5) and (6) doesn't change this, so basically it looks like it simply isn't setting up the events correctly for any frame other than ChatFrame1. (i.e., GetChatWindowMessages not providing correct message list for index ~= 1).
This is all with no addons enabled (same behavior with addons though).
-- Cirk
(edited to add Slouken's name to subject line)[ post edited by Cirk ]
Cirk's Addons - http://www.pieloor.net.au/WoW
| | | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=296640&p=#post296640 | | | Poster: slouken at 1/10/2006 5:38:00 PM PST Subject: Re: ChatFrames not getting NOTICE events |
| |
Forwarded, thanks. I haven't worked on the chat Lua code, so I didn't quite follow this, but hopefully Q/A will understand it. :)
| | | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=296640&p=#post298587 |
View all recent official Blue Posts
|