How to add custom bad word filter?

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?

Groups:
Login to post comments

Not supported

Darren Oh's picture
Darren Oh - Thu, 2008-01-17 14:38

The current version of Chat Room does not support filters.


Adding badword filtering to

keesje76's picture
keesje76 - Mon, 2008-05-12 14:47

Adding badword filtering to Chatrooms would please me much!