changeset 74:15844864a5f7

Admin mode
author John@Doomsday
date Mon, 09 Apr 2012 09:40:14 -0400
parents 7eb2963eea7d
children ed1c9fd4cc95
files Core.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Sun Apr 08 22:13:17 2012 -0400
+++ b/Core.lua	Mon Apr 09 09:40:14 2012 -0400
@@ -29,7 +29,6 @@
 setfenv(1,bsk)
 
 local pkgrev = " @project-revision@ "
-admin = admin or true
 
 -- important things to remember:
 -- 1) ipairs iterates from 1 until the first missing int index -> no gaps if int
@@ -49,6 +48,8 @@
     _G.LibStub("AceConfig-3.0"):RegisterOptionsTable("bsk", options)
     --optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("bsk", "bsk")
 
+    admin = db.profile.admin
+
     local HandlePassThrough = function(...) HandleCommand(...) end
     bsk:RegisterChatCommand("bsk", HandlePassThrough)
     bsk:OnInitializeSetStaticData()