cleanup: use plain string.find where possible

This commit is contained in:
shagu
2017-01-02 00:41:47 +01:00
parent 2f22f9e4a2
commit cc0c086ca2
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ pfUI:RegisterModule("chat", function ()
text = string.gsub(text, "|Hplayer:(.-)|h%[.-%]|h(.-:-)", "[|Hplayer:%1|h" .. Name .. "|h]" .. "%2")
-- make incoming whispers lighter than outgoing
if string.find(text, '|cff'..wcol) == 1 then
if string.find(text, '|cff'..wcol, 1) == 1 then
text = string.gsub(text, "|r", "|cff" .. wcol)
end