Skip to content

Commit

Permalink
Merge remote-tracking branch 'mroswald/patch-1'
Browse files Browse the repository at this point in the history
-changed CensusPlus_UPDATEDELAY to be 5 for wholib
  • Loading branch information
Ceron257 committed Oct 3, 2019
2 parents 8a44abb + f5e2e40 commit cbe8382
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.tabSize": 2,
"editor.useTabStops": false,
"editor.detectIndentation": false
}
35 changes: 18 additions & 17 deletions CensusPlusClassic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ function CensusPlus_StartCensus()
wholib = wholib or LibStub:GetLibrary("LibWho-2.0", true)
if wholib then
CensusPlus_Msg(CENSUSPLUS_USING_WHOLIB)
CensusPlus_UPDATEDELAY = 60
--CensusPlus_UPDATEDELAY = 60
end
end
end
Expand Down Expand Up @@ -3585,22 +3585,23 @@ end
local whoMsg

function ManualWho()
now = time()
if now - CPp.LastManualWho > 5 then
if (g_Verbose == true) then
print("ManualWho:", whoMsg)
end
CPp.LastManualWho = time()
if (whoquery_active) then
wholib:Who(whoMsg, {
queue = wholib.WHOLIB_QUEUE_QUIET,
flags = 0,
callback = CP_ProcessWhoEvent
})
WhoFrameEditBox:SetText(whoMsg)
WhoFrameWhoButton:Click()
end
end
now = time()
local deltaManual = now - CPp.LastManualWho
if deltaManual > CensusPlus_UPDATEDELAY then
if (g_Verbose == true) then
print("ManualWho:", whoMsg)
end
CPp.LastManualWho = time()
if (whoquery_active) then
wholib:Who(whoMsg, {
queue = wholib.WHOLIB_QUEUE_QUIET,
flags = 0,
callback = CP_ProcessWhoEvent
})
WhoFrameEditBox:SetText(whoMsg)
WhoFrameWhoButton:Click()
end
end
end

function CensusPlus_SendWho(msg)
Expand Down

0 comments on commit cbe8382

Please sign in to comment.