(oh, I do get the message it sends in the function)
Code:
local frame, events = CreateFrame"Frame", {} -- this line is original code not written by me
frame:RegisterEvent("CHAT_MSG_WHISPER_INFORM");
function events:CHAT_MSG_WHISPER_INFORM(msg, sender, language, channelString, target)
if string.find(msg,Ni_Settings.msg) then
NinjaMessage("Send a whisper to " .. target)
return -- also tried 'return true'
end
end
No comments:
Post a Comment