Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun Aug 15 22:09:36 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sun Aug 15 23:07:54 2004 +0000 @@ -5995,7 +5995,7 @@ case 0x000c: { /* you are over the limit, the cheat is to the limit, come on fhqwhgads */ gchar *buf; 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)"))); - if (!gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) + if ((retval->name != NULL) && !gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) gaim_notify_error(gc, NULL, _("Unable To Add"), buf); g_free(buf); } @@ -6009,7 +6009,7 @@ gchar *buf; gaim_debug_error("oscar", "ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack); 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)"))); - if (!gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) + if ((retval->name != NULL) && !gaim_conv_present_error(retval->name, gaim_connection_get_account(gc), buf)) gaim_notify_error(gc, NULL, _("Unable To Add"), buf); g_free(buf); } break;