changeset 71:8ff44f76e844 1.0

Add temporary checks to disable the AddOn if ran on a 4.3.4 server.
author James D. Callahan III <jcallahan@curse.com>
date Tue, 14 Aug 2012 15:50:15 -0500
parents b085df332056
children a58a9e2dafc0
files .pkgmeta Main.lua
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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