diff --git a/Transcriptor.lua b/Transcriptor.lua index 4c015c1..ec40bb5 100644 --- a/Transcriptor.lua +++ b/Transcriptor.lua @@ -1648,19 +1648,6 @@ do end) end --------------------------------------------------------------------------------- --- LibSpec --- - -do - local LibSpec = LibStub and LibStub("LibSpecialization", true) - if LibSpec then - LibSpec:Register(Transcriptor, function(specId, role, position, playerName, talents) - playerSpecList[playerName] = {specId, role, position, talents} - end) - end -end - -------------------------------------------------------------------------------- -- Addon -- @@ -1741,6 +1728,13 @@ init:SetScript("OnEvent", function(self, event) SLASH_TRANSCRIPTOR2 = "/transcript" SLASH_TRANSCRIPTOR3 = "/ts" + local LibSpec = LibStub and LibStub("LibSpecialization", true) + if LibSpec then + LibSpec:Register(Transcriptor, function(specId, role, position, playerName, talents) + playerSpecList[playerName] = {specId, role, position, talents} + end) + end + self:UnregisterEvent(event) self:RegisterEvent("PLAYER_LOGOUT") self:SetScript("OnEvent", function() @@ -1831,7 +1825,7 @@ do hiddenUnitAuraCollector = {} playerSpellCollector = {} previousSpecialEvent = nil - if not compareStartTime or debugprofilestop()-compareStartTime > 5 then + if not logStartTime or (debugprofilestop()/1000)-logStartTime > 3 then compareStartTime = debugprofilestop() logStartTime = compareStartTime / 1000 prevEncounterStart = nil