# HG changeset patch # User Nenue # Date 1457569763 18000 # Node ID 137b8c55a5935acfd254f1e1b9d5542bde2e1b69 # Parent 516ceb31703d2ea14a190577dc158b85e71070bf character profile wasn't being created diff -r 516ceb31703d -r 137b8c55a593 Devian.lua --- a/Devian.lua Sat Mar 05 13:35:51 2016 -0500 +++ b/Devian.lua Wed Mar 09 19:29:23 2016 -0500 @@ -131,6 +131,10 @@ D.console = {} D.max_channel = 0 +D.InWorkspace = function () + return db.profiles[db.current_profile].workspace +end + D.Profile = function (id, name) if name and not id and db.profilesName[name] then @@ -257,9 +261,14 @@ else return D:PrintHelp() end + if not db.profiles[list_id].char[playerRealm] then + db.profiles[list_id].char[playerRealm] = {} + end + targetGlobal = db.profiles[list_id].global targetChar = db.profiles[list_id].char[playerRealm] + if scan_func then for id, name, enableState, globalState in D.Addons() do scan_func(id, name, enableState, globalState) @@ -363,7 +372,7 @@ -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel. -- @param ... Output contents. function D.Message(prefix, ...) - if currentProfile.workspace then + if not currentProfile.workspace then return D.oldprint(prefix, ...) end prefix = tostring(prefix)