Verified Commit ce4f52ac authored by Repooc's avatar Repooc
Browse files

no 'shorthand' prob keep shit from erroring

parent 99d4a560
...@@ -159,14 +159,14 @@ end ...@@ -159,14 +159,14 @@ end
DB.RepChatFrames = {} DB.RepChatFrames = {}
function DB:NewRepString() function DB:NewRepString()
if not DB.db.reputation or not DB.db.reputation.chatfilter.enable then return end if not E.db.sle.databars.reputation or not E.db.sle.databars.reputation.chatfilter.enable then return end
local stop = false local stop = false
local tempfactions = GetNumFactions() local tempfactions = GetNumFactions()
if (tempfactions > DB.factions) then if (tempfactions > DB.factions) then
DB:ScanFactions() DB:ScanFactions()
DB.factions = tempfactions DB.factions = tempfactions
end end
if DB.db.reputation.chatfilter.chatframe == "AUTO" then if E.db.sle.databars.reputation.chatfilter.chatframe == "AUTO" then
wipe(DB.RepChatFrames) wipe(DB.RepChatFrames)
for i = 1, NUM_CHAT_WINDOWS do for i = 1, NUM_CHAT_WINDOWS do
if SLE:SimpleTable(_G['ChatFrame'..i]['messageTypeList'], 'COMBAT_FACTION_CHANGE') then if SLE:SimpleTable(_G['ChatFrame'..i]['messageTypeList'], 'COMBAT_FACTION_CHANGE') then
...@@ -195,21 +195,21 @@ function DB:NewRepString() ...@@ -195,21 +195,21 @@ function DB:NewRepString()
if StyleTable then if StyleTable then
-- local change = abs(barValue - DB.factionVars[name].Value) -- local change = abs(barValue - DB.factionVars[name].Value)
if DB.db.reputation.chatfilter.chatframe == 'AUTO' then if E.db.sle.databars.reputation.chatfilter.chatframe == 'AUTO' then
for n = 1, #(DB.RepChatFrames) do for n = 1, #(DB.RepChatFrames) do
local chatframe = _G[DB.RepChatFrames[n]] local chatframe = _G[DB.RepChatFrames[n]]
chatframe:AddMessage(format(DB[StyleTable][DB.db.reputation.chatfilter.style] , DB.db.reputation.chatfilter.iconsize, name, diff)) chatframe:AddMessage(format(DB[StyleTable][E.db.sle.databars.reputation.chatfilter.style] , E.db.sle.databars.reputation.chatfilter.iconsize, name, diff))
if not DB.db.reputation.chatfilter.showAll then if not E.db.sle.databars.reputation.chatfilter.showAll then
stop = true stop = true
break break
end end
end end
else else
local chatframe = _G[DB.db.reputation.chatfilter.chatframe] local chatframe = _G[E.db.sle.databars.reputation.chatfilter.chatframe]
chatframe:AddMessage(format(DB[StyleTable][DB.db.reputation.chatfilter.style] , DB.db.reputation.chatfilter.iconsize, name, diff)) chatframe:AddMessage(format(DB[StyleTable][E.db.sle.databars.reputation.chatfilter.style] , E.db.sle.databars.reputation.chatfilter.iconsize, name, diff))
if not DB.db.reputation.chatfilter.showAll then if not E.db.sle.databars.reputation.chatfilter.showAll then
stop = true stop = true
break break
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment