@@ -11,10 +11,8 @@ if not plugin then return end
1111-- Locals
1212--
1313
14- -- luacheck: globals Transcriptor TranscriptDB TranscriptIgnore
15- -- luacheck: globals UpdateAddOnMemoryUsage GetAddOnMemoryUsage date time
16- local ipairs , next , print , split , trim = ipairs , next , print , strsplit , strtrim
17- local sort , concat , tremove , wipe = table.sort , table.concat , table.remove , table .wipe
14+ local ipairs , next , print , split , trim = ipairs , next , print , string .split , string .trim
15+ local sort , concat , tinsert , tremove , wipe = table.sort , table.concat , table.insert , table.remove , table .wipe
1816local tonumber , ceil , floor = tonumber , math.ceil , math.floor
1917
2018local logging = nil
@@ -82,7 +80,7 @@ local diffShort = {
8280
8381local function parseLogInfo (logName , log )
8482 -- logNameFormat = "[2026-02-23]@[22:08:08] - Zone#2915 (Nexus-Point Xenas)#Difficulty#8 (Mythic+)#Type#party#WoWVer#12.0.1.66017#TSVer#v12.0.5"
85- local year , month , day , hour , min , sec , map , diff , version , tsVersion = logName :match (" ^%[(%d+)-(%d+)-(%d+)%]@%[(%d+):(%d+):(%d+)%] %- Zone#(%d+).+#Difficulty#(%d+).+#Type#.+#WoWVer#(.+)#TSVer#(.+)$" )
83+ local year , month , day , hour , min , sec , map , diff , version = logName :match (" ^%[(%d+)-(%d+)-(%d+)%]@%[(%d+):(%d+):(%d+)%] %- Zone#(%d+).+#Difficulty#(%d+).+#Type#.+#WoWVer#(.+)#TSVer#(.+)$" )
8684 if not version then
8785 -- try previous format
8886 -- logNameFormat = "[%s]@[%s] - Zone:%d Difficulty:%d,%s Type:%s " .. format("Version: %s.%s", wowVersion, buildRevision)
293291 GameTooltip :Hide ()
294292 -- collectgarbage()
295293 end
296- local function disabled (info )
294+ local function disabled ()
297295 return InCombatLockdown ()
298296 end
299297
620618 end
621619 end
622620
623- function plugin :ENCOUNTER_END (_ , id , name , diff , size , status )
621+ function plugin :ENCOUNTER_END (_ , _ , _ , _ , _ , status )
624622 self :ScheduleTimer (Stop , status == 0 and 5 or 12 ) -- catch the end events
625623 end
626624end
627625
628- function plugin :ENCOUNTER_START (_ , id , name , diff , size )
626+ function plugin :ENCOUNTER_START ()
629627 self :Start ()
630628end
631629
0 commit comments