[ejabberd] Altering message body in a module

Hisham Mardam Bey hisham.mardambey at gmail.com
Sat Mar 31 03:54:50 MSK 2012


Hi folks,

I'm working on a module for ejabberd 2.1.x that needs to alter the
contents of the body in a message stanza. I'm to the point where I
have my altered body as a string and I want to put it back into the
cdata entry in the message. exmpp offers convenience functions to do
these kinds of operations but I am not sure how to do it on my own
being new to Erlang. Any recommendations?

Thanks,

hmb.

-- 
Hisham Mardam-Bey
http://hisham.cc/


More information about the ejabberd mailing list