From d4526353f84d02c1f8f3557fb2c7ba853bd3e453 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 11 Jul 2014 22:51:31 +0400 Subject: [PATCH] Blah --- ElvUI_SLE/core/commands.lua | 2 +- ElvUI_SLE/core/toolkit.lua | 79 ------------------------------------------- 2 files changed, 1 insertion(+), 80 deletions(-) diff --git a/ElvUI_SLE/core/commands.lua b/ElvUI_SLE/core/commands.lua index 5a7f62b..e52ace9 100644 --- a/ElvUI_SLE/core/commands.lua +++ b/ElvUI_SLE/core/commands.lua @@ -1,4 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB +local E, L, V, P, G, _ = unpack(ElvUI); local SLE = E:GetModule('SLE'); local find = string.find local split = string.split diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua index 7dbb7dc..26b8465 100644 --- a/ElvUI_SLE/core/toolkit.lua +++ b/ElvUI_SLE/core/toolkit.lua @@ -12,85 +12,6 @@ local UF = E:GetModule('UnitFrames') local GetContainerNumSlots, GetContainerItemID = GetContainerNumSlots, GetContainerItemID ---The list of authorized toons -local Authors = { - ["Illidan"] = { - --Darth's toon - ["Darthpred"] = "SLEAUTHOR", - --Repooc's Toon - ["Repooc"] = "SLEAUTHOR", - ["Repooc"] = "SLEAUTHOR" - }, - ["Âå÷íàÿÏåñíÿ"] = { - --Darth's toons - ["Äàðòïðåäàòîð"] = "SLEAUTHOR", - ["Àëåÿ"] = "SLEAUTHOR", - ["Âàççóëè"] = "SLEAUTHOR", - ["Ñèàðàííà"] = "SLEAUTHOR", - ["Äæàòîí"] = "SLEAUTHOR", - ["Ôèêñòåð"] = "SLEAUTHOR", - ["Êèëàíäðà"] = "SLEAUTHOR", - ["Íàðäæî"] = "SLEAUTHOR", - ["Êåëèíèðà"] = "SLEAUTHOR", - ["Êðåíèã"] = "SLEAUTHOR", - ["Ìåéæè"] = "SLEAUTHOR" - }, - ["Korialstrasz"] = { - ["Cursewordz"] = "SLEAUTHOR" - }, - ["Spirestone"] = { - ["Sifupooc"] = "SLEAUTHOR", - ["Dapooc"] = "SLEAUTHOR", - ["Lapooc"] = "SLEAUTHOR", - ["Warpooc"] = "SLEAUTHOR", - ["Repooc"] = "SLEAUTHOR" - }, - ["Andorhal"] = { - ["Dapooc"] = "SLEAUTHOR", - ["Rovert"] = "SLEAUTHOR", - ["Sliceoflife"] = "SLEAUTHOR" - }, - ["WyrmrestAccord"] = { - ["Kitalie"] = "SLEAUTHOR", - ["Sagome"] = "SLEAUTHOR", - ["Ainy"] = "SLEAUTHOR", - ["Norinael"] = "SLEAUTHOR", - ["Tritalie"] = "SLEAUTHOR", - ["Myun"] = "SLEAUTHOR", - ["Nevaleigh"] = "SLEAUTHOR", - ["Celenii"] = "SLEAUTHOR", - ["Varysa"] = "SLEAUTHOR", - ["Caylasena"] = "SLEAUTHOR", - ["Arillora"] = "SLEAUTHOR", - ["Dapooc"] = "SLEAUTHOR", - }, - ["Anasterian(US)"] = { - ["Dapooc"] = "SLEAUTHOR", - }, - ["Brill(EU)"] = { - ["Äàðòïðåäàòîð"] = "SLEAUTHOR", - }, -} - -function SLE:Auth(sender) - local senderName, senderRealm - - if sender then - senderName, senderRealm = string.split('-', sender) - else - senderName = E.myname - end - - senderRealm = senderRealm or E.myrealm - senderRealm = senderRealm:gsub(' ', '') - - if Authors[senderRealm] and Authors[senderRealm][senderName] then - return Authors[senderRealm][senderName] - end - - return false -end - function SLE:BagSearch(itemId) for container = 0, NUM_BAG_SLOTS do for slot = 1, GetContainerNumSlots(container) do -- 1.7.9.5