api: use dynamic shortcut for string.gfind

This commit is contained in:
shagu
2018-09-28 22:53:16 +02:00
parent 0d993806e6
commit 7ecac458ac
8 changed files with 26 additions and 20 deletions
+1 -1
View File
@@ -858,7 +858,7 @@ pfUI:RegisterModule("chat", function ()
-- display class colors if already indexed
if C.chat.text.classcolor == "1" then
for name in string.gfind(text, "|Hplayer:(.-)|h") do
for name in gfind(text, "|Hplayer:(.-)|h") do
local color = unknowncolorhex
local match = false
-- search player in database