# HG changeset patch # User Zerotorescue # Date 1296923768 -3600 # Node ID 15f22a466596fdee65363fca719d1c4bae743610 # Parent bfab0c870d1e4417b5b251106ffb71b77fae5d06 Cleaning up. diff -r bfab0c870d1e -r 15f22a466596 Modules/Alerts.lua --- a/Modules/Alerts.lua Sat Feb 05 17:32:25 2011 +0100 +++ b/Modules/Alerts.lua Sat Feb 05 17:36:08 2011 +0100 @@ -1,5 +1,5 @@ local addon = select(2, ...); -local mod = addon:NewModule("Alerts", "AceEvent-3.0", "AceTimer-3.0"); +local mod = addon:NewModule("Alerts", "AceTimer-3.0"); local queue, cache = {}, {}; @@ -13,24 +13,6 @@ end, { "a", "alert" }, "|Hfunction:InventoriumCommandHandler:alert|h|cff00fff7/im alert|r|h (or /im a) - Rescan the items within all tracked groups and show item alerts for those items missing."); mod:Scan(false); - - --[[if addon.db.profile.defaults.scanInterval["00Login"] then - self:RegisterEvent("PLAYER_LOGIN", "Scan"); - end - - if addon.db.profile.defaults.scanInterval["01Repeat5"] then - self:ScheduleTimer("Scan", 5 * 60); - elseif addon.db.profile.defaults.scanInterval["01Repeat10"] then - self:ScheduleTimer("Scan", 10 * 60); - elseif addon.db.profile.defaults.scanInterval["01Repeat15"] then - self:ScheduleTimer("Scan", 15 * 60); - elseif addon.db.profile.defaults.scanInterval["01Repeat30"] then - self:ScheduleTimer("Scan", 30 * 60); - elseif addon.db.profile.defaults.scanInterval["01Repeat60"] then - self:ScheduleTimer("Scan", 60 * 60); - elseif addon.db.profile.defaults.scanInterval["01Repeat120"] then - self:ScheduleTimer("Scan", 120 * 60); - end]] end local scanTypes = { diff -r bfab0c870d1e -r 15f22a466596 Modules/Queue.lua --- a/Modules/Queue.lua Sat Feb 05 17:32:25 2011 +0100 +++ b/Modules/Queue.lua Sat Feb 05 17:36:08 2011 +0100 @@ -1,5 +1,5 @@ local addon = select(2, ...); -local mod = addon:NewModule("Queue", "AceEvent-3.0", "AceTimer-3.0"); +local mod = addon:NewModule("Queue", "AceEvent-3.0"); local _G = _G; local tonumber, tostring, pairs, sformat, smatch, slower, floor, ceil, tinsert, twipe = _G.tonumber, _G.tostring, _G.pairs, _G.string.format, _G.string.match, _G.string.lower, _G.floor, _G.ceil, _G.table.insert, _G.table.wipe; diff -r bfab0c870d1e -r 15f22a466596 Modules/Summary.lua --- a/Modules/Summary.lua Sat Feb 05 17:32:25 2011 +0100 +++ b/Modules/Summary.lua Sat Feb 05 17:36:08 2011 +0100 @@ -1,5 +1,5 @@ local addon = select(2, ...); -- Get a reference to the main addon object -local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0"); -- register a new module, Summary: resposible for building the summary window +local mod = addon:NewModule("Summary"); -- register a new module, Summary: resposible for building the summary window local _G = _G; -- prevent looking up of the global table local sformat, sgsub, supper, mceil, mfloor, tinsert, twipe, tsort = _G.string.format, _G.string.gsub, _G.string.upper, _G.math.ceil, _G.math.floor, _G.table.insert, _G.table.wipe, _G.table.sort;