General fixes, framework update
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user