Many functions in the mod_roster.erl file accept an “Acc” parameter. What does this parameter store? It is always empty in my function calls.
e.g.
get_user_roster(Acc, US) ->
....
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basing on implementation I would say that is just syntactic sugar over propagating final roster list.
I never used it with Acc =/= []. As I see, non of ejabberd’s module does otherwise (always Acc = [], so nothing is appended to roster retrieved from database).
I can imagine that we can call this function with some custom/client data and make implementation of custom module more compact.