You can report and/or block players like that. I think there is also a way to mute specific players in chat, but I have never tried it - so I don't know exactly how.