changeset 9661:52319a1d9a55

[gaim-migrate @ 10509] Daniel Atallah thinks this might fix bug 1002994. I don't disagree. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 04 Aug 2004 02:51:59 +0000
parents 903bfc7af0e2
children cedb8474b255
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);