Lawyer made ‘wrong comments’ about judges in chat