Commit cd5f164d authored by Simpy's avatar Simpy 🐹

move the lib.myName to one line just so we dont store the additional local once

parent 2ddf8a0f
......@@ -153,10 +153,7 @@ 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
if not lib.myName then
local myRealm = gsub(E.myrealm,'[%s%-]','')
lib.myName = E.myname..'-'..myRealm
if not lib.myName then lib.myName = E.myname..'-'..gsub(E.myrealm,'[%s%-]','') end
if sender == lib.myName then return end
if not E["pluginRecievedOutOfDateMessage"] then
local name, version, plugin, Pname
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