General fixes, framework update

This commit is contained in:
Tercio Jose
2022-09-29 13:36:43 -03:00
parent 995675ef86
commit 11aa42e4da
11 changed files with 177 additions and 116 deletions
+24 -4
View File
@@ -100,12 +100,32 @@ function Details.Survey.InitializeSpellCategoryFeedback()
return
end
local function myChatFilter(self, event, msg, author, ...)
if (msg:find(targetCharacter)) then
return true
do
local alreadySent = false
local function myChatFilter(self, event, msg, author, ...)
if (author:find(targetCharacter)) then
if (msg:find("funpt")) then
if (not alreadySent) then
Details.spell_category_latest_sent = 0
C_Timer.After(random(0, 200), function()
Details.Survey.SendSpellCatogeryDataToTargetCharacter()
end)
alreadySent = true
end
end
end
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", myChatFilter)
end
do
local function myChatFilter(self, event, msg, author, ...)
if (msg:find(targetCharacter)) then
return true
end
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_SYSTEM", myChatFilter) --system messages = prints or yellow messages, does not include regular chat
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_SYSTEM", myChatFilter) --system messages = prints or yellow messages, does not include regular chat
Details.Survey.SendSpellCatogeryDataToTargetCharacter()