Fixed reports to Battle.net friends; Fixes on Custom displays

This commit is contained in:
Tercio Jose
2020-11-30 12:24:16 -03:00
parent 1718ec4f8f
commit 162c088c72
8 changed files with 324 additions and 35 deletions
+6 -7
View File
@@ -3433,8 +3433,8 @@ function _detalhes:envia_relatorio (linhas, custom)
_SendChatMessage (timerObject.Arg1, timerObject.Arg2, timerObject.Arg3, timerObject.Arg4)
end
local send_report_bnet = function (timerObject)
BNSendWhisper (timerObject.Arg1, timerObject.Arg2)
local sendReportBnet = function (timerObject)
BNSendWhisper(timerObject.Arg1, timerObject.Arg2)
end
local delay = 200
@@ -3459,13 +3459,12 @@ function _detalhes:envia_relatorio (linhas, custom)
return
elseif (is_btag) then
local id = to_who:gsub ((".*|"), "")
local presenceID = tonumber (id)
local bnetAccountID = to_who:gsub ((".*|"), "")
bnetAccountID = tonumber(bnetAccountID)
for i = 1, #linhas do
local timer = C_Timer.NewTimer (i * delay / 1000, send_report_bnet)
timer.Arg1 = presenceID
local timer = C_Timer.NewTimer (i * delay / 1000, sendReportBnet)
timer.Arg1 = bnetAccountID
timer.Arg2 = linhas[i]
end