LJ::accept_comm_invite — Accepts an invitation a user has received. This does all the work to make the user join the community as well as sets up privileges.
Use
LJ::accept_comm_invite(uuserid, cuserid);
Arguments
uuserid. a userid or u object of the user to get pending invites for
cuserid. a userid or u object of the community to reject the invitation from