fix: Don't crash on error messages

This commit is contained in:
ptrcnull 2021-06-26 15:57:40 +02:00
parent bcb7200ebf
commit bd34c6d350

View file

@ -36,8 +36,9 @@ func main() {
if len(cells) == 0 { if len(cells) == 0 {
return return
} }
if len(cells) == 3 { if len(cells) < 5 {
reply = "Not found :(" reply = "Not found :("
return
} }
reply += cells[1].Text() + "\n" + cells[0].Text() + "\n\n" reply += cells[1].Text() + "\n" + cells[0].Text() + "\n\n"
}) })