Skip to content

Commit

Permalink
Highlight: Fix pattern priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed May 17, 2020
1 parent 3170e47 commit b23885d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/Highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ end

local function highlightPlayer(text)
if module.db.profile.player then
return CLR:Colorize("00ff00", text)
return Prat:RegisterMatch(CLR:Colorize("00ff00", text))
end
end

Expand All @@ -161,7 +161,7 @@ end
end

Prat:SetModulePatterns(module, {
{ pattern = Prat.GetNamePattern(UnitName("player")), matchfunc = highlightPlayer, priority = 100 },
{ pattern = "<(..-)>", matchfunc = highlightGuild, priority = 100 },
{ pattern = Prat.GetNamePattern(UnitName("player")), matchfunc = highlightPlayer, priority = 47 },
{ pattern = "<(..-)>", matchfunc = highlightGuild, priority = 49 },
})
end)

0 comments on commit b23885d

Please sign in to comment.