ejabberd event set_presence_hook

Hi, I am trying to write a hook for the event when a user connects and disconnects from ejabberd. It needs to fire exactly when these connect,disconnect events occur.

Would set_presence_hook be the right Hook or is there a better hook to use?

Thank you,
Man

Better see

Better see mod_shared_roster.erl , it uses: user_available_hook and unset_presence_hook

Syndicate content