Fixed text IO for the chatroom class.