# HG changeset patch # User James D. Callahan III # Date 1344977415 18000 # Node ID 8ff44f76e844f8f9e66129bb535279ae8f4e167c # Parent b085df3320560f74b1a68bd4f1dd2f01315d3cf5 Add temporary checks to disable the AddOn if ran on a 4.3.4 server. diff -r b085df332056 -r 8ff44f76e844 Main.lua --- a/Main.lua Mon Aug 13 12:02:21 2012 -0500 +++ b/Main.lua Tue Aug 14 15:50:15 2012 -0500 @@ -407,10 +407,13 @@ -- Methods. ----------------------------------------------------------------------- function WDP:OnInitialize() + -- TODO: Remove this once 5.0.4 hits Live. + if private.wow_version == "4.3.4" then + return + end db = LibStub("AceDB-3.0"):New("WoWDBProfilerData", DATABASE_DEFAULTS, "Default").global local raw_db = _G["WoWDBProfilerData"] - local build_num = tonumber(private.build_num) -- TODO: Un-comment this when MoP goes live. @@ -425,6 +428,11 @@ function WDP:OnEnable() + -- TODO: Remove this once 5.0.4 hits Live. + if private.wow_version == "4.3.4" then + return + end + for event_name, mapping in pairs(EVENT_MAPPING) do self:RegisterEvent(event_name, (_G.type(mapping) ~= "boolean") and mapping or nil) end