int bone_inviteuser(BONEHANDLE bhnd, const char *channelname, const char *name)

Description
Invites a Bone user to an invite-only channel which you own.

Callback
BONE_CALLBACK_INVITEUSER

Notes
The function parameters are the BONEHANDLE, Bone channel, and the name of the user to invite.  You must be the channel owner of an invite only channel to use this function.

Example

bone_setcallback(BONE_CALLBACK_INVITEUSER, callback_inviteuser);

//login and join channel #bonerocks here


if (bone_inviteuser(bnd,"#bonerocks","ima"))
    printf("Unable to invite user (reason %d).\n",bone_getlasterror());

void callback_inviteuser(BONEHANDLE bnd, const char *errordetails, int errorcode)
{
    if (errorcode)
    {
        printf("%s (reason: %d).", errordetails, errorcode);
    }
}