Mercurial > wow > devian
changeset 67:137b8c55a593
character profile wasn't being created
author | Nenue |
---|---|
date | Wed, 09 Mar 2016 19:29:23 -0500 |
parents | 516ceb31703d |
children | 1687ae1c6162 |
files | Devian.lua |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)