void CYahooProto::send_msg(const char *id, int protocol, const char *msg, int utf8) { LOG(("[send_msg] Who: %s: protocol: %d Msg: '%s', utf: %d", id, protocol, msg, utf8)); int buddy_icon = (getDword("AvatarHash", 0) != 0) ? 2: 0; yahoo_send_im(m_id, NULL, id, protocol, msg, utf8, buddy_icon); }
void YahooConnection::Message(const char* who, const char* msg) { if (fStatus == YAHOO_STATUS_OFFLINE) { fManager->Error("Can't send message, not connected", who ); return; } yahoo_send_im( fID, NULL /* default identity */, who, msg, 1 /* it's utf-8 */, 0 ); fManager->MessageSent( who, msg ); }