Commit 5426464d authored by Simpy's avatar Simpy 🐹

go back to 30 second delay

parent efa5e6bd
......@@ -105,7 +105,7 @@ local function SendVersionCheckMessage()
lib:SendPluginVersionCheck(lib:GenerateVersionCheckMessage())
end
function lib:DelayedSendVersionCheck()
function lib:DelayedSendVersionCheck(delay)
local E = ElvUI[1]
if not E.SendPluginVersionCheck then
......@@ -113,7 +113,7 @@ function lib:DelayedSendVersionCheck()
end
if not lib.SendMessageWaiting then
lib.SendMessageWaiting = E:Delay(10, ElvUI[1].SendPluginVersionCheck)
lib.SendMessageWaiting = E:Delay(delay or 10, ElvUI[1].SendPluginVersionCheck)
end
end
......@@ -192,7 +192,7 @@ function lib:VersionCheck(event, prefix, message, _, sender)
lib.groupSize = num
end
elseif event == 'LOADING_SCREEN_DISABLED' then
lib:DelayedSendVersionCheck()
lib:DelayedSendVersionCheck(35) -- 35 seconds is same as core send version check time
end
end
......
......@@ -962,7 +962,7 @@ local function SendRecieve(_, event, prefix, message, _, sender)
end
elseif event == "LOADING_SCREEN_DISABLED" then
if not SendMessageWaiting then
SendMessageWaiting = E:Delay(5, E.DelayedElvUIGVC)
SendMessageWaiting = E:Delay(30, E.DelayedElvUIGVC) -- attempt to join channel 30 seconds after event, then 5 seconds after that send message
end
end
end
......@@ -985,7 +985,7 @@ function E:DelayedElvUIGVC()
end
if not SendMessageWaiting then
SendMessageWaiting = E:Delay(5, E.SendMessage)
SendMessageWaiting = E:Delay(5, E.SendMessage) -- this is really 30+5, so 35.
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment