com.threerings.crowd.chat.client
Interface ChatFilter
- All Known Implementing Classes:
- CurseFilter, MuteDirector
public interface ChatFilter
Filters messages chat messages to or from the server.
filter
String filter(String msg,
Name otherUser,
boolean outgoing)
- Filter a chat message.
- Parameters:
msg - the message text to be filtered.otherUser - an optional argument that represents the target or the speaker, depending
on 'outgoing', and can be considered in filtering if it is provided.outgoing - true if the message is going out to the server.
- Returns:
- the filtered message, or null to block it completely.