Added getLines function to ChatBox to get the amount of lines