comparison src/protocols/oscar/oscar.c @ 8151:b619ee745ec0

[gaim-migrate @ 8863] If you try to add an ICQ user that requires auth, but you're too chicken to request auth from them, then Gaim will remove the dude from your local list. Chicken. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 20 Jan 2004 15:58:39 +0000
parents 20262ccefdd8
children 82aeed3c90f0
comparison
equal deleted inserted replaced
8150:20262ccefdd8 8151:b619ee745ec0
2 * gaim 2 * gaim
3 * 3 *
4 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net> 4 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
5 * Some code copyright (C) 1999-2001, Eric Warmenhoven 5 * Some code copyright (C) 1999-2001, Eric Warmenhoven
6 * Some code copyright (C) 2001-2003, Sean Egan 6 * Some code copyright (C) 2001-2003, Sean Egan
7 * Some code copyright (C) 2001-2003, Mark Doliner <thekingant@users.sourceforge.net> 7 * Some code copyright (C) 2001-2004, Mark Doliner <thekingant@users.sourceforge.net>
8 * 8 *
9 * Most libfaim code copyright (C) 1998-2001 Adam Fritzler <afritz@auk.cx> 9 * Most libfaim code copyright (C) 1998-2001 Adam Fritzler <afritz@auk.cx>
10 * Some libfaim code copyright (C) 2001-2003 Mark Doliner <thekingant@users.sourceforge.net> 10 * Some libfaim code copyright (C) 2001-2004 Mark Doliner <thekingant@users.sourceforge.net>
11 * 11 *
12 * This program is free software; you can redistribute it and/or modify 12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by 13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or 14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version. 15 * (at your option) any later version.
2458 2458
2459 static void gaim_auth_dontrequest(struct name_data *data) { 2459 static void gaim_auth_dontrequest(struct name_data *data) {
2460 GaimConnection *gc = data->gc; 2460 GaimConnection *gc = data->gc;
2461 2461
2462 if (g_list_find(gaim_connections_get_all(), gc)) { 2462 if (g_list_find(gaim_connections_get_all(), gc)) {
2463 /* OscarData *od = gc->proto_data; */ 2463 /* Remove from local list */
2464 /* XXX - Take the buddy out of our buddy list */ 2464 GaimBuddy *b = gaim_find_buddy(gaim_connection_get_account(gc), data->name);
2465 gaim_blist_remove_buddy(b);
2465 } 2466 }
2466 2467
2467 oscar_free_name_data(data); 2468 oscar_free_name_data(data);
2468 } 2469 }
2469 2470
5085 gchar *buf; 5086 gchar *buf;
5086 gaim_debug(GAIM_DEBUG_ERROR, "oscar", "ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack); 5087 gaim_debug(GAIM_DEBUG_ERROR, "oscar", "ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack);
5087 buf = g_strdup_printf(_("Could not add the buddy %s for an unknown reason. The most common reason for this is that you have the maximum number of allowed buddies in your buddy list."), (retval->name ? retval->name : _("(no name)"))); 5088 buf = g_strdup_printf(_("Could not add the buddy %s for an unknown reason. The most common reason for this is that you have the maximum number of allowed buddies in your buddy list."), (retval->name ? retval->name : _("(no name)")));
5088 gaim_notify_error(gc, NULL, _("Unable To Add"), buf); 5089 gaim_notify_error(gc, NULL, _("Unable To Add"), buf);
5089 g_free(buf); 5090 g_free(buf);
5090 /* XXX - Should remove buddy from local list */
5091 } break; 5091 } break;
5092 } 5092 }
5093 5093
5094 retval = retval->next; 5094 retval = retval->next;
5095 } 5095 }