Unless you are defining CHAT_MSG_WHISPER somewhere, I'm not sure if the WoW UI defines it.
You are probably looking for "DEFAULT_CHAT_FRAME:AddMessage".
Also, the code you pasted doesn't show you creating a frame and registering for the whisper event anywhere, if you haven't done so somewhere else, you need to do that too before you can receive and respond to events :)
Last edited by Sharparam : 03-20-13 at 01:32 PM.
|