Skip to content

Commit

Permalink
update versionCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunny67 committed Jan 6, 2018
1 parent de039d5 commit 0ff560d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ElvUI/core/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ function E:SendMessage()
end
end

local SendRecieveGroupSize
local function SendRecieve(_, event, prefix, message, _, sender)
if not E.global.general.versionCheck then return end

Expand All @@ -800,7 +801,14 @@ local function SendRecieve(_, event, prefix, message, _, sender)
E.recievedOutOfDateMessage = true
end
else
E.SendMSGTimer = E:ScheduleTimer("SendMessage", 12)
local numRaid, numParty = GetNumRaidMembers(), GetNumPartyMembers() + 1
local num = numRaid > 0 and numRaid or numParty
if num ~= SendRecieveGroupSize then
if num > 1 and SendRecieveGroupSize and num > SendRecieveGroupSize then
E.SendMSGTimer = E:ScheduleTimer("SendMessage", 12)
end
SendRecieveGroupSize = num
end
end
end

Expand Down

0 comments on commit 0ff560d

Please sign in to comment.