How to add custom bad word filter?

Events happening in the community are now at Drupal community events on www.drupal.org.
megafanat@drupal.ru's picture

I want to add specific message filter to chat. This filter checks message from user. If message does not fit rules then error message is appeared on chat page, original message is left in input field and is not shown in chat.

I already have filter function. This function gets message string and returns error message. If error message is empty then user`s message fits rules.

Please, explain me how to add this filter to Chat Room module? Is it possible? Is it difficult? In what function or line of code I should add filter call?

Comments

Not supported

darren oh's picture

The current version of Chat Room does not support filters.

Adding badword filtering to

keesje76's picture

Adding badword filtering to Chatrooms would please me much!

Chat

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: