Put this in your OnLoad area
this:RegisterEvent("CHAT_MSG_WHISPER");
And this in the OnEvent area
if (event == "CHAT_MSG_WHISPER") then
local oColor = {r = 0.3, g = 0.3, b = 1.0};
SCT_Display(arg2 .. ": " .. arg1, oColor);
end
You can just put that in any of your addons.
|