if vText:find("%-+") or vText:find("There is no player with that name%.") or vText:find("You found nobody online with the name '%w+'%.") then
if vText:find("%-+") or vText:find("There is no player with that name%.") or vText:find("You found nobody online with the name '%w+'%.") or vText == "{scan}" then
foundStartIdx = indexStart
foundStartIdx = (vText ~= "{scan}" and indexStart or indexStart + 1)
break
break
end
end
end
end
@ -116,9 +116,10 @@ function addToWindow(lines)
for indexEnd = #lines, 1, -1 do
for indexEnd = #lines, 1, -1 do
vText = lines[indexEnd][1].text
vText = lines[indexEnd][1].text
if vText:find("%-+") or vText:find("There is no player with that name%.") or vText:find("You found nobody online with the name '%w+'%.") then
if vText:find("%-+") or vText:find("There is no player with that name%.") or vText:find("You found nobody online with the name '%w+'%.") or vText == "{/scan}" then
table.move(lines, foundStartIdx, indexEnd, 1)
foundEndIdx = (vText ~= "{/scan}" and indexEnd or indexEnd - 1)