From 6617e1d8611793e7d9a5326fae0d077f1ec5effd Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sun, 20 May 2007 18:48:38 +0000 Subject: [PATCH] * Updated to Dongle-1.0-r859 --- Dongle.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dongle.lua b/Dongle.lua index dbf5e11..00bfb10 100644 --- a/Dongle.lua +++ b/Dongle.lua @@ -155,7 +155,7 @@ end ---------------------------------------------------------------------------]] local major = "Dongle-1.0" -local minor = tonumber(string.match("$Revision: 349 $", "(%d+)") or 1) + 500 +local minor = tonumber(string.match("$Revision: 360 $", "(%d+)") or 1) + 500 -- ** IMPORTANT NOTE ** -- Due to some issues we had previously with Dongle revision numbers -- we need to artificially inflate the minor revision number, to ensure @@ -1244,6 +1244,9 @@ local function Activate(self, old) local lib = old or self + -- Lets make sure the lookup table has us. + lookup[lib] = lookup[major] + -- Register for events using Dongle itself lib:RegisterEvent("ADDON_LOADED", ADDON_LOADED) lib:RegisterEvent("PLAYER_LOGIN", PLAYER_LOGIN) @@ -1272,4 +1275,11 @@ local function Activate(self, old) end end +-- Lets nuke any Dongle deactivate functions, please +-- I hate nasty hacks. +if DongleStub:HasVersion(major) then + local reg = DongleStub.versions[major] + reg.deactivate = nil +end + Dongle = DongleStub:Register(Dongle, Activate) -- 1.7.9.5