Skip to content

Commit

Permalink
Core: Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Aug 1, 2019
1 parent 26cc554 commit 8567fe6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions BasicCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,23 @@ BCM.Events.PLAYER_LOGIN = function(frame)
if i ~= 2 then --skip combatlog
local num = cF.historyBuffer.headIndex
if num > 0 then -- Catch up on any lines we missed during the log in process
for i = 1, num do
local tbl = cF.historyBuffer.elements[i]
for l = 1, num do
local tbl = cF.historyBuffer.elements[l]
local text = tbl.message
if text and text ~= "" then
text = tostring(text)
for i=1, #BCM.chatFuncs do
text = BCM.chatFuncs[i](text)
for f=1, #BCM.chatFuncs do
text = BCM.chatFuncs[f](text)
end
cF.historyBuffer.elements[i].message = text
cF.historyBuffer.elements[l].message = text
end
end
end
hooksecurefunc(cF.historyBuffer, "PushFront", EditMessage)
end

for j=1, #BCM.chatFuncsPerFrame do
BCM.chatFuncsPerFrame[j](cF, n)
BCM.chatFuncsPerFrame[j](cF, n, i)
end
end

Expand All @@ -175,7 +175,7 @@ BCM.Events.PLAYER_LOGIN = function(frame)

--Fire functions to apply to various frames
for j=1, #BCM.chatFuncsPerFrame do
BCM.chatFuncsPerFrame[j](cF, n)
BCM.chatFuncsPerFrame[j](cF, n, i)
end
else
return -- No frame found, stop looping and back out.
Expand Down

0 comments on commit 8567fe6

Please sign in to comment.