Skip to content

Commit

Permalink
FIX:
Browse files Browse the repository at this point in the history
more tweaking on filters.
  • Loading branch information
grimmier378 committed Mar 23, 2024
1 parent 39fb0f9 commit eca87b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.lua
Expand Up @@ -164,11 +164,12 @@ function ChatWin.EventChat(channelID, eventName, line)
local txtBuffer = ChatWin.Consoles[channelID].txtBuffer
local colorVec = eventDetails.Filters[0].color or {1,1,1,1}
local fMatch = false

local fCount = 0
if txtBuffer then
-- for eID, eData in pairs(eventDetails.Filters) do
for fID, fData in pairs(eventDetails.Filters) do
if fID > 0 then
fCount = fCount + 1
local fString = fData.filterString
if string.find(fString, 'ME') then
fString = string.gsub(fString,'ME', mq.TLO.Me.DisplayName())
Expand Down Expand Up @@ -220,7 +221,7 @@ function ChatWin.EventChat(channelID, eventName, line)
-- end
end
--print(tostring(#eventDetails.Filters))
if not fMatch and #eventDetails.Filters ~= 0 then return end
if not fMatch and fCount > 0 then return end
local i = getNextID(txtBuffer)
if timeStamps then
local tStamp = mq.TLO.Time.Time24()
Expand Down

0 comments on commit eca87b5

Please sign in to comment.