comparison src/protocols/oscar/oscar.c @ 9758:4f2b50a06224

[gaim-migrate @ 10625] Do fewer moronic things with the about window. Also get rid of some assertion failed errors on oscar when you get that unable to add (no name) thing committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 15 Aug 2004 23:07:54 +0000
parents 4a8bf81b82ae
children 41f302d41839
comparison
equal deleted inserted replaced
9757:d4e15f9d6652 9758:4f2b50a06224
5993 } break; 5993 } break;
5994 5994
5995 case 0x000c: { /* you are over the limit, the cheat is to the limit, come on fhqwhgads */ 5995 case 0x000c: { /* you are over the limit, the cheat is to the limit, come on fhqwhgads */
5996 gchar *buf; 5996 gchar *buf;
5997 buf = g_strdup_printf(_("Could not add the buddy %s because you have too many buddies in your buddy list. Please remove one and try again."), (retval->name ? retval->name : _("(no name)"))); 5997 buf = g_strdup_printf(_("Could not add the buddy %s because you have too many buddies in your buddy list. Please remove one and try again."), (retval->name ? retval->name : _("(no name)")));
5998 if (!gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) 5998 if ((retval->name != NULL) && !gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf))
5999 gaim_notify_error(gc, NULL, _("Unable To Add"), buf); 5999 gaim_notify_error(gc, NULL, _("Unable To Add"), buf);
6000 g_free(buf); 6000 g_free(buf);
6001 } 6001 }
6002 6002
6003 case 0x000e: { /* buddy requires authorization */ 6003 case 0x000e: { /* buddy requires authorization */
6007 6007
6008 default: { /* La la la */ 6008 default: { /* La la la */
6009 gchar *buf; 6009 gchar *buf;
6010 gaim_debug_error("oscar", "ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack); 6010 gaim_debug_error("oscar", "ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack);
6011 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)"))); 6011 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)")));
6012 if (!gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) 6012 if ((retval->name != NULL) && !gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf))
6013 gaim_notify_error(gc, NULL, _("Unable To Add"), buf); 6013 gaim_notify_error(gc, NULL, _("Unable To Add"), buf);
6014 g_free(buf); 6014 g_free(buf);
6015 } break; 6015 } break;
6016 } 6016 }
6017 6017