Verified Commit 7c96b39b authored by Repooc's avatar Repooc
Browse files

fixed leaking something into global

parent 98339a81
...@@ -107,9 +107,8 @@ function DB:PopulateHonorStrings() ...@@ -107,9 +107,8 @@ function DB:PopulateHonorStrings()
AwardPattern = T.rgsub(COMBATLOG_HONORAWARD, unpack(symbols)) AwardPattern = T.rgsub(COMBATLOG_HONORAWARD, unpack(symbols))
end end
function DB:FilterHonor(event, message, ...) function DB:FilterHonor(_, message, ...)
local name, rank, honor local name, rank, honor, bonus
if DB.db.honor.chatfilter.enable then
if E.db.sle.databars.honor.chatfilter.enable then if E.db.sle.databars.honor.chatfilter.enable then
for i, v in ipairs(DB.Honor.Strings) do for i, v in ipairs(DB.Honor.Strings) do
name, rank, honor, bonus = strmatch(message,DB.Honor.Strings[i]) name, rank, honor, bonus = strmatch(message,DB.Honor.Strings[i])
......
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