diff -r 730947e681e0 -r 374cfafde641 plugins/yay/outgoing.c --- a/plugins/yay/outgoing.c Wed Jun 13 07:26:16 2001 +0000 +++ b/plugins/yay/outgoing.c Wed Jun 13 21:28:03 2001 +0000 @@ -115,6 +115,29 @@ return 0; ret = yahoo_write_cmd(session, conn, YAHOO_SERVICE_MESSAGE, + active_id ? active_id : session->name, buf, 0); + g_free(buf); + + return ret; +} + +int yahoo_send_message_offline(struct yahoo_session *session, const char *active_id, + const char *user, const char *msg) +{ + struct yahoo_conn *conn; + char *buf; + int ret; + + if (!session || !user || !msg) + return 0; + + if (!(conn = yahoo_getconn_type(session, YAHOO_CONN_TYPE_MAIN))) + return 0; + + if (!(buf = g_strconcat(user, ",", msg, NULL))) + return 0; + + ret = yahoo_write_cmd(session, conn, YAHOO_SERVICE_MESSAGE, active_id ? active_id : session->name, buf, YAHOO_MESSAGE_SEND); g_free(buf);