Description
Sends text to a user or channel. When sending text to a channel, be
sure to include the pound sign '#' at the beginning of the channel name.
Callback
BONE_CALLBACK_SENDTEXT
Notes
The function parameters are the BONEHANDLE, the target user, and the
message.
Example
bone_setcallback (BONE_CALLBACK_SENDTEXT, callback_sendtext);
if (bone_sendtext(bnd, "ima", "Hi Bone user :)"))
printf("Unable to send text (reason %d).\n", bone_getlasterror());
if (bone_sendtext(bnd, "#bone", "Hello Bones!"))
printf("Unable to send text (reason %d).\n",
bone_getlasterror());
void callback_sendtext (BONEHANDLE bhnd, int errorcode, const char *target)
{
if (errorcode)
printf("Error sending text to %s (reason %d).\n",
target, errorcode);
}