Commit 00846be2 authored by Simpy's avatar Simpy 🐹

same thing, azilfied

parent 99348118
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 19
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 20
local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
......@@ -23,6 +23,7 @@ local LE_PARTY_CATEGORY_INSTANCE = LE_PARTY_CATEGORY_INSTANCE
lib.plugins = {}
lib.index = 0
lib.prefix = "ElvUIPluginVC"
lib.groupSize = -1
-- MULTI Language Support (Default Language: English)
local MSG_OUTDATED = "Your version of %s %s is out of date (latest is version %s). You can download the latest version from http://www.tukui.org"
......@@ -180,9 +181,8 @@ function lib:VersionCheck(event, prefix, message, channel, sender)
local num = GetNumGroupMembers()
if num ~= lib.groupSize then
if num > 1 and ((lib.groupSize and num > lib.groupSize) or not lib.sentOnce) then
if num > 1 and num > lib.groupSize then
E["ElvUIPluginSendMSGTimer"] = E:ScheduleTimer("SendPluginVersionCheck", 12)
lib.sentOnce = true
end
lib.groupSize = num
end
......
......@@ -919,7 +919,7 @@ function E:SendMessage()
end
end
local SendRecieveGroupSize, SendRecieveSentOnce
local SendRecieveGroupSize = -1
local myRealm = gsub(E.myrealm,'[%s%-]','')
local myName = E.myname..'-'..myRealm
local function SendRecieve(_, event, prefix, message, _, sender)
......@@ -940,9 +940,8 @@ local function SendRecieve(_, event, prefix, message, _, sender)
else
local num = GetNumGroupMembers()
if num ~= SendRecieveGroupSize then
if num > 1 and ((SendRecieveGroupSize and num > SendRecieveGroupSize) or not SendRecieveSentOnce) then
if num > 1 and num > SendRecieveGroupSize then
E.SendMSGTimer = E:ScheduleTimer('SendMessage', 12)
SendRecieveSentOnce = true
end
SendRecieveGroupSize = num
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