BONE_CALLBACK_CHANNELATTRIBUTES

Description
Called when you first join a channel to convey the attributes of the channel.

Example

bone_setcallback(BONE_CALLBACK_CHANNELATTRIBUTES, callback_chanattributes);

void callback_chanattributes(BONEHANDLE bhnd, const char *channel, char channeltype, const char *owner, const char *channelpassword)
{
    printf("Information for channel %s:\n", channel);
    switch(channeltype)
    {
    case BONE_API_CHANNEL_STANDARD:  printf("%s is a standard channel.\n",channel);  break;
    case BONE_API_CHANNEL_INVITEONLY:  printf("%s is an invite-only channel.\n",channel);  break;
    case BONE_API_CHANNEL_PASSWORDED:  printf("%s is a password protected channel.\n",channel);  break;
    }

    printf("%s is owned by %s.\n", channel, owner);
}