# HG changeset patch # User Mark Doliner # Date 1091587919 0 # Node ID 52319a1d9a55f4c6d5830222878e4235f21b1ce8 # Parent 903bfc7af0e22374efe9cc0ac127048ed8ebafe8 [gaim-migrate @ 10509] Daniel Atallah thinks this might fix bug 1002994. I don't disagree. committer: Tailor Script diff -r 903bfc7af0e2 -r 52319a1d9a55 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Wed Aug 04 02:46:35 2004 +0000 +++ b/src/protocols/oscar/oscar.c Wed Aug 04 02:51:59 2004 +0000 @@ -4286,8 +4286,10 @@ alerturl = va_arg(ap, char *); va_end(ap); - if (emailinfo && gaim_account_get_check_mail(gc->account)) { - gchar *to = g_strdup_printf("%s@%s", gaim_account_get_username(gaim_connection_get_account(gc)), emailinfo->domain); + if ((emailinfo != NULL) && gaim_account_get_check_mail(gc->account)) { + gchar *to = g_strdup_printf("%s%s%s", gaim_account_get_username(gaim_connection_get_account(gc)), + emailinfo->domain ? "@" : "", + emailinfo->domain ? emailinfo->domain : ""); if (emailinfo->unread && havenewmail) gaim_notify_emails(gc, emailinfo->nummsgs, FALSE, NULL, NULL, (const char **)&to, (const char **)&emailinfo->url, NULL, NULL); g_free(to);