Error checking to see if babble libs and acelocal is loaded.
Ackis [10-22-08 - 17:52]
Error checking to see if babble libs and acelocal is loaded.
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index 61e0968..5d862a0 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -27,6 +27,35 @@ local MODNAME = "Ackis Recipe List"
local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME)
+-- Lets check to see if we have the needed libraries loaded (these are manditory to run)
+if (not LibStub:GetLibrary("LibBabble-Faction-3.0", true)) then
+
+ self:Print("LibBabble-Faction-3.0 not loaded. Addon cannot run.")
+ return
+
+end
+
+if (not LibStub:GetLibrary("LibBabble-Zone-3.0", true)) then
+
+ self:Print("LibBabble-Zone-3.0 not loaded. Addon cannot run.")
+ return
+
+end
+
+if (not LibStub:GetLibrary("LibBabble-Boss-3.0", true)) then
+
+ self:Print("LibBabble-Boss-3.0 not loaded. Addon cannot run.")
+ return
+
+end
+
+if (not LibStub:GetLibrary("AceLocale-3.0", true)) then
+
+ self:Print("AceLocale-3.0 not loaded. Addon cannot run.")
+ return
+
+end
+
local BFAC = LibStub("LibBabble-Faction-3.0"):GetLookupTable()
local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME)
diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc
index 3384c48..8668d0c 100644
--- a/AckisRecipeList.toc
+++ b/AckisRecipeList.toc
@@ -18,7 +18,7 @@
## X-Donate: Donate a few bucks/hours at your local animal shelter, or send me UDE Point codes, a Murky Code, or an account upgrade certificate.
## Interface: 30000
-## Version: Beta 5 r937
+## Version: Beta 5 r938
## X-Revision: $Rev$
## X-Date: $Date$