Hey,
i've got a problem with the CHAT_MSG_WHISPER event.
This is my code: (just to test it
)
Code:
CRTFrame:RegisterEvent("CHAT_MSG_WHISPER");
local function eventHandler(self, event, ...)
local OtherPlayer = arg2;
local message = arg1
print(arg1)
print(OtherPlayer)
print(arg2)
end
CRTFrame:SetScript("OnEvent", eventHandler);
My problem is, that OtherPlayer and arg2, both return "nil" and I don't know why. arg1 returns the Whisper message