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
DB.RepChatFrames = {}
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 tempfactions = GetNumFactions()
if (tempfactions > DB.factions) then
DB:ScanFactions()
DB.factions = tempfactions
end
if DB.db.reputation.chatfilter.chatframe == "AUTO" then
if E.db.sle.databars.reputation.chatfilter.chatframe == "AUTO" then
wipe(DB.RepChatFrames)
for i = 1, NUM_CHAT_WINDOWS do
if SLE:SimpleTable(_G['ChatFrame'..i]['messageTypeList'], 'COMBAT_FACTION_CHANGE') then
......@@ -195,21 +195,21 @@ function DB:NewRepString()
if StyleTable then
-- 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
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
break
end
end
else
local chatframe = _G[DB.db.reputation.chatfilter.chatframe]
chatframe:AddMessage(format(DB[StyleTable][DB.db.reputation.chatfilter.style] , DB.db.reputation.chatfilter.iconsize, name, diff))
local chatframe = _G[E.db.sle.databars.reputation.chatfilter.chatframe]
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
break
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