Skip to content

Commit

Permalink
playernames: Fix misidentifying item links in emotes as player links, c…
Browse files Browse the repository at this point in the history
…loses #67
  • Loading branch information
funkydude committed Nov 2, 2022
1 parent fb9a559 commit ea042ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playernames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ BCM.modules[#BCM.modules+1] = function()
return "|Hplayer:"..fullName..misc..bcmDB.playerLBrack..nameToChange..bcmDB.playerRBrack..(colon == ":" and bcmDB.playerSeparator or colon).."|h"
end
BCM.chatFuncs[#BCM.chatFuncs+1] = function(text)
text = text:gsub("|Hplayer:([^:|]+)([^%[]+)%[([^%]]+)%]|h(:?)", changeName)
text = text:gsub("|Hplayer:([^:|]+)([^ %[]+)%[([^%]]+)%]|h(:?)", changeName)
return text
end
end
Expand Down
2 changes: 1 addition & 1 deletion playernames_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ BCM.modules[#BCM.modules+1] = function()
return "|Hplayer:"..fullName..misc..bcmDB.playerLBrack..nameToChange..bcmDB.playerRBrack..(colon == ":" and bcmDB.playerSeparator or colon).."|h"
end
BCM.chatFuncs[#BCM.chatFuncs+1] = function(text)
text = text:gsub("|Hplayer:([^:|]+)([^%[]+)%[([^%]]+)%]|h(:?)", changeName)
text = text:gsub("|Hplayer:([^:|]+)([^ %[]+)%[([^%]]+)%]|h(:?)", changeName)
return text
end
end
Expand Down

0 comments on commit ea042ce

Please sign in to comment.