Filter module that works with Chat Room
jenna.tollerson - January 7, 2009 - 22:15
| Project: | Chat Room |
| Version: | 5.x-1.9 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
This might turn into a feature request (which I know belong in the wiki), but I'm hoping this already exists somewhere. Is there a module that will filter offensive words, either with stars or replacement text, in Chat Room's "Chat"s? I have Wordfilter installed but it doesn't appear to have any effect on Chats, so I wonder if I am doing something wrong or if there is something else I can try? I'm guessing that Chats aren't run though the traditional input filters, the way text is at node creation?
Thanks in advance.

#1
chatroom_chat_update in chatroomread.php passes the message through check_plain(strip_tags(urldecode($_POST['chatroomMsg'])))
It could be more Drupal-like if the messages were actually put in the database as-is, and using the (caching) drupal filter system when presenting the messages back to the user. Chatrooms could have a configurable input format, like other text entry forms in eg nodes. This way, chats could instantly benefit from eg bbcode formatting, word filters, smilies, urlifying, etc.
#2
this is how the 6.x.2 branch works, but i'm not really interested in back-porting to the 5 branch. i'd be happy to help someone else take that on, however.
please change this back to active if someone wants to try to backport.