diff src/protocols/yahoo/yahoo.c @ 6796:f5f2669970a0

[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 <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 09 Sep 2003 00:15:13 +0000
parents 40ba19133882
children 3ef17670e69f
line wrap: on
line diff
--- 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);