Hi,
My answer is not SO related to Panda, but all you need to do is to check each string that is sent over the network for a list of badword.
I’m sure that with a little of googling, you can already find such a list. All you need to do after that is to check the strings. And to do that, this is not panda related, you need to learn Python (Or C++ if you are using C++)
For the banning, you only need a “if” that if one of the word is found, ban him.
Hope this help,
Jaff