Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ElvUI Project
ElvUI
Commits
65019d02
Commit
65019d02
authored
Dec 21, 2017
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase timer to 12 and store myName into a variable because we dont need to gsub this each time
parent
80de880b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
+6
-4
No files found.
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
View file @
65019d02
...
...
@@ -153,9 +153,11 @@ end
function
lib
:
VersionCheck
(
event
,
prefix
,
message
,
channel
,
sender
)
local
E
=
ElvUI
[
1
]
if
(
event
==
"CHAT_MSG_ADDON"
)
and
sender
and
message
and
(
message
~=
""
)
and
(
prefix
==
lib
.
prefix
)
then
local
myRealm
=
gsub
(
E.myrealm
,
'[%s%-]'
,
''
)
local
myName
=
E
.
myname
..
'-'
..
myRealm
if
sender
==
myName
then
return
end
if
not
lib
.
myName
then
local
myRealm
=
gsub
(
E.myrealm
,
'[%s%-]'
,
''
)
lib
.
myName
=
E
.
myname
..
'-'
..
myRealm
end
if
sender
==
lib
.
myName
then
return
end
if
not
E
[
"pluginRecievedOutOfDateMessage"
]
then
local
name
,
version
,
plugin
,
Pname
for
_
,
p
in
pairs
({
strsplit
(
";"
,
message
)})
do
...
...
@@ -183,7 +185,7 @@ function lib:VersionCheck(event, prefix, message, channel, sender)
if
(
numMembers
==
0
)
and
lib
.
numMembers
then
lib
.
numMembers
=
nil
-- clear this after we leave the group
elseif
(
numMembers
>
1
)
and
((
not
lib
.
numMembers
)
or
(
lib
.
numMembers
~=
numMembers
))
then
E
[
"ElvUIPluginSendMSGTimer"
]
=
E
:
ScheduleTimer
(
"SendPluginVersionCheck"
,
2
)
E
[
"ElvUIPluginSendMSGTimer"
]
=
E
:
ScheduleTimer
(
"SendPluginVersionCheck"
,
1
2
)
lib
.
numMembers
=
numMembers
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment