comparison src/protocols/oscar/oscar.c @ 4790:4e617a0719ed

[gaim-migrate @ 5110] Fixes ICQ receive contacts from another ICQ user. Previously, the name and alias were swapped when you try to add a buddy. Also, I think Gaim should try to be the St. Pauli Girl spokesperson for 2004. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 15 Mar 2003 19:47:54 +0000
parents 1e28e7d802a1
children e737e3e08b4a
comparison
equal deleted inserted replaced
4789:f1fde07ed951 4790:4e617a0719ed
2420 num = num*10 + text[0][i]-48; 2420 num = num*10 + text[0][i]-48;
2421 for (i=0; i<num; i++) { 2421 for (i=0; i<num; i++) {
2422 struct name_data *data = g_new(struct name_data, 1); 2422 struct name_data *data = g_new(struct name_data, 1);
2423 gchar *message = g_strdup_printf(_("ICQ user %lu has sent you a contact: %s (%s)"), args->uin, text[i*2+2], text[i*2+1]); 2423 gchar *message = g_strdup_printf(_("ICQ user %lu has sent you a contact: %s (%s)"), args->uin, text[i*2+2], text[i*2+1]);
2424 data->gc = gc; 2424 data->gc = gc;
2425 data->name = g_strdup(text[i*2+2]); 2425 data->name = g_strdup(text[i*2+1]);
2426 data->nick = g_strdup(text[i*2+1]); 2426 data->nick = g_strdup(text[i*2+2]);
2427 do_ask_dialog(message, _("Do you want to add this contact to your Buddy List?"), data, _("Add"), gaim_icq_contactadd, _("Decline"), gaim_free_name_data, my_protocol->plug ? my_protocol->plug->handle : NULL, FALSE); 2427 do_ask_dialog(message, _("Do you want to add this contact to your Buddy List?"), data, _("Add"), gaim_icq_contactadd, _("Decline"), gaim_free_name_data, my_protocol->plug ? my_protocol->plug->handle : NULL, FALSE);
2428 g_free(message); 2428 g_free(message);
2429 } 2429 }
2430 g_strfreev(text); 2430 g_strfreev(text);
2431 } 2431 }