Now requires LibInit at least version 40
Alar of Runetotem [02-16-17 - 15:58]
Now requires LibInit at least version 40
diff --git a/Init.lua b/Init.lua
index b766ad4..cfcb4b4 100644
--- a/Init.lua
+++ b/Init.lua
@@ -1,4 +1,8 @@
local me, ns = ...
+local LibInit,minor=LibStub("LibInit",true)
+assert(LibInit,me .. ": Missing LibInit, please reinstall")
+local minvers=40
+assert(minor>=minvers,me ..': Need at least Libinit version ' .. minvers)
local _G=_G
local setmetatable=setmetatable
local next=next
@@ -21,7 +25,7 @@ if LibDebug then LibDebug() ns.print=print else ns.print=function() end end
--[===[@non-debug@
ns.print=function() end
--@end-non-debug@]===]
-ns.addon=LibStub("LibInit"):NewAddon(me,{profile='Default',enhancedProfile=true},'AceHook-3.0','AceTimer-3.0','AceEvent-3.0','AceBucket-3.0','AceSerializer-3.0')
+ns.addon=LibInit:NewAddon(me,{profile='Default',enhancedProfile=true},'AceHook-3.0','AceTimer-3.0','AceEvent-3.0','AceBucket-3.0','AceSerializer-3.0')
local addon=ns.addon --#addon
ns.toc=select(4,GetBuildInfo())
ns.AceGUI=LibStub("AceGUI-3.0")