He pleaded guilty in May to sending obscene messages to a 15-year-old girl.