[ejabberd] ejabberd user-offline hook

Theo Cushion theo at jivatechnology.com
Tue Nov 23 12:26:11 MSK 2010


On 23 Nov 2010, at 09:04, Stephan Maihöfer wrote:

> is there a hook in ejabberd so that i could write a module that acts  
> once a user creates his first session on the jabber-server (logs in  
> with his first resource) and then again acts on sigout of the last  
> resource connected with that bare-jid? it seems all the hooks there  
> are handle full-jids. if that is the case, is there some central  
> function that i can use to check all the resources a user is online  
> with, or just the count of open ressources for a bare-jid would be  
> enough.

I've had to do exactly this recently, check out the code here: https://github.com/theoooo/mod_eventful/blob/master/src/web/mod_eventful.erl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20101123/d82b03e5/attachment.html>


More information about the ejabberd mailing list