# HG changeset patch # User Daniel Atallah # Date 1133913906 0 # Node ID c9aeafdb445e6a9bf2db41983ac883950de8c9e9 # Parent b94069a95be75dc2d6e28778b23ca8836da7135c [gaim-migrate @ 14682] Update yahoo to use gaim_account_notify_added and gaim_account_request_add committer: Tailor Script diff -r b94069a95be7 -r c9aeafdb445e src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Wed Dec 07 00:04:50 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Wed Dec 07 00:05:06 2005 +0000 @@ -817,8 +817,14 @@ static void yahoo_buddy_add_authorize_cb(struct yahoo_add_request *add_req, const char *msg) { - gaim_account_notify_added(add_req->gc->account, add_req->id, - add_req->who, NULL, add_req->msg); + GaimBuddy *buddy = gaim_find_buddy(add_req->gc->account, add_req->who); + + if (buddy != NULL) + gaim_account_notify_added(add_req->gc->account, add_req->who, + add_req->id, NULL, add_req->msg); + else + gaim_account_request_add(add_req->gc->account, add_req->who, + add_req->id, NULL, add_req->msg); g_free(add_req->id); g_free(add_req->who);