Quantcast
Channel: ejabberd Community Site - Module development
Viewing all articles
Browse latest Browse all 56

gen_mod:start_module:78 Problem starting the module my_module for host

$
0
0

Hi,

I run a small private group of users on an XMPP server and recently I have been wanting to write a custom module that that will timestamp all messages. I figure something like an ejabberd hook using filter_packets would work perfect (adding something like this to the message body 2014-04-11 12:30:00 and then parse it on the client side).

As I have not written a custom module before and being at an low intermediate level with Erlang I decided to go for the basics - following Jack Moffits mod_sunshine.erl example as well as Anders Conbere's examples.

read more


Viewing all articles
Browse latest Browse all 56