# HG changeset patch # User John@Doomsday # Date 1333978814 14400 # Node ID 15844864a5f71a6831f97b8e1f28d99653d9a2d6 # Parent 7eb2963eea7d26ad253b8c0ffc4422ae7179ba1c Admin mode diff -r 7eb2963eea7d -r 15844864a5f7 Core.lua --- 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()