ejabberd - Comments for "Module that would inform an external script that a user has logged in or logged out." https://www.ejabberd.im/node/4342 en mives wrote: 1. if a user has https://www.ejabberd.im/node/4342#comment-56708 <div class="quote-msg"> <div class="quote-author"><em>mives</em> wrote:</div> <p>1. if a user has logged in<br /> 2. and logged out.<br /> 3. users that do not explicitly log out (ie when session expires/time out) </p></div> <p>Hooks:<br /> 1. sm_register_connection_hook<br /> 2. sm_remove_connection_hook<br /> 3. I think that also triggers event 2.</p> <div class="quote-msg"> <div class="quote-author"><em>mives</em> wrote:</div> <p>some pointers on how to do this (what hooks to add, ports to listen, etc) </p></div> <p>Ports to listen: none, because your module will perform HTTP requests to a remote web server, which is the one listening.</p> <div class="quote-msg"> <div class="quote-author"><em>mives</em> wrote:</div> <p>if a module already has this same capability or something similar. </p></div> <p>Not the same, but for some example usages of those or other hooks, see in ejabberd-modules SVN those modules: mod_logsession, mod_log_chat, mod_logxml, mod_statsdx.</p> Wed, 06 Oct 2010 10:33:46 +0000 mfoss comment 56708 at https://www.ejabberd.im