hello,
is it possible to "intercept" chat messages (to log each message into a DB for example), and to know if the SFS-badword filter kicked in?
do i have to registerForEvents?
http://www.smartfoxserver.com/docs/docP ... rForEvents
best,
thomas
Badword interceptor
No, check the "pubMsg" and "privMsg" events from the InternalEventObject class. By default those events are not fired by the server.do i have to registerForEvents?
You can activate them by calling the following methods on the Zone (at init time):
Code: Select all
zone.setPubMsgInternalEvent(true)
zone.setPrivMsgInternalEvent(true)