Hello.
I am interested in a way to write a module that automatically alters each message according to some internal logic. This can be anything from content filtering to advertisement addition. Is there a generic way in XMPP to do that using some external module? Should the c2s module be replaced to modified? If yes, could anyone possibly point me to existing solutions for similar problems?
Thank you.
filter_packet hook
There is no standard XMPP way of doing it, but ejabberd has a filter hook for that purpose. Seemy mod_shit module for an example.