WoWInterface SVN InFlight

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches
    from Rev 156 to Rev 157
    Reverse comparison

Rev 156 → Rev 157

Classic/InFlight/InFlight.lua
169,16 → 169,17
InFlightDB = { profiles = { Default = tempDB }}
end
 
-- Check that this is the right version of the client and database to avoid corruption
local client = select(4, GetBuildInfo()) < 20000 and "classic"
if InFlightDB.version ~= client or InFlightDB.version ~= "classic" then
-- Check that this is the right version of the client
if select(4, GetBuildInfo()) > 20000 then
Print(L["AddonDisabled"])
DisableAddOn("InFlight")
return
end
 
-- Check that this is the right version of the database to avoid corruption
if InFlightDB.version ~= "classic" then
InFlightDB.global = nil
InFlightDB.version = "classic"
if client ~= "classic" then
Print(L["AddonDisabled"])
DisableAddOn("InFlight")
return
end
end
 
-- Update default data