[ejabberd] hook roster_get in own mod_roster

Stephan Maihöfer sma at turtle-entertainment.de
Thu May 28 19:51:07 MSD 2009


> -----Ursprüngliche Nachricht-----
> Von: ejabberd-bounces at jabber.ru 
> >
> > is that right or do i have some error in my code? i do 
> nowhere request 
> > the roster to be sent, and i do never receive any roster data (i am 
> > not even sending any kind of presence), but still i see requests to 
> > the webservice.
> The server needs to know anyway who are your contact to send presence.

after a look into the code it seems that it is actually
roster_get_subscription_lists that is being called on
session creation (in line 819 of ejabberd_c2s.erl). 

i thought that would not be the case when i do not request 
the roster AND do not send any kind of presence. so that the 
server should not see any need to send presence or my roster to me.

thanks for the clarification though.


More information about the ejabberd mailing list