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
foundStartIdx = indexStart
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 = (vText ~= "{scan}" and indexStart or indexStart + 1)
break
end
end
@ -116,9 +116,10 @@ function addToWindow(lines)
for indexEnd = #lines, 1, -1 do
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
table.move(lines, foundStartIdx, indexEnd, 1)
local len = indexEnd - foundStartIdx + 1
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
foundEndIdx = (vText ~= "{/scan}" and indexEnd or indexEnd - 1)