# HG changeset patch # User Luke Schierer # Date 1063066513 0 # Node ID f5f2669970a087ab95b946877526d7b1b3ff7175 # Parent 40ba19133882d379d033cb7d6258626ba0b41672 [gaim-migrate @ 7336] Tim Ringenbach (marv_sf) writes: " Chip changed the prototype, and we were using that function for the callback for the right click menu for buddies that aren't on the server list. So this fixes it." committer: Tailor Script diff -r 40ba19133882 -r f5f2669970a0 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Mon Sep 08 19:25:10 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Tue Sep 09 00:15:13 2003 +0000 @@ -1424,6 +1424,11 @@ return ret; } +static void yahoo_addbuddyfrommenu_cb(GaimConnection *gc, const char *who) +{ + yahoo_add_buddy(gc, who, NULL); +} + static GList *yahoo_buddy_menu(GaimConnection *gc, const char *who) { GList *m = NULL; @@ -1437,7 +1442,7 @@ if (!f) { pbm = g_new0(struct proto_buddy_menu, 1); pbm->label = _("Add Buddy"); - pbm->callback = yahoo_add_buddy; + pbm->callback = yahoo_addbuddyfrommenu_cb; pbm->gc = gc; m = g_list_append(m, pbm);